Instead use one of the version comparison macros. See "PERL_VERSION_EQ".
"PERL_VERSION_EQ"
To install less, copy and paste the appropriate command in to your terminal.
cpanm
cpanm less
CPAN shell
perl -MCPAN -e shell install less
For more information on module installation, please visit the detailed CPAN module installation guide.