Skip to main content

Posts

Showing posts with the label perl

Perl one liners

Check if a module is installed: perl -M<module name>-e 1 Check the version of the installed modules: perl -M<module name> -e 'print "$<module name>::VERSION \n"' Install a perl module using CPAN: perl -MCPAN -e 'install <module name>' ________________________________________________ References: http://www.perlhowto.com/perl_modules http://www.cpan.org/misc/cpan-faq.html#How_install_Perl_modules