Friday, March 25, 2011

Perl Module Tricks

To check the existence of a module, if the following completes with no errors, it's installed...

perl -MXML::Simple -e 1

To get the version of a module...

perl -MXML::Simple -e 'print "$XML::Simple::VERSION\n"'

No comments:

Post a Comment