To install Term::UI::History, simply copy and paste either of the commands in to your terminal
cpanm
cpanm Term::UI::History
CPAN shell
perl -MCPAN -e shell
install Term::UI::History
For more information on module installation please visit the detailed CPAN module installation guide.