Category: >> Perl Code >> A One-liner To Get Module Version Bookmark and Share

<< lastnext >>

Snippet Name: A One-liner To Get Module Version

Description: Just a a quick way to get the version from a module.

Also see:
» Perl version of file_get_contents&...
» Awesome Date Time Conversion Kit
» Decimal to octal conversion
» Basic currency conversion Convert...
» Calculate TIMEDIFF with mysql vers...
» UNIX Timestamp conversion

Comment: (none)

Author: CoderZone
Language: PERL
Highlight Mode: PERL
Last Modified: December 02nd, 2010

# PUT IN .bashrc FILE
   local m=$1
   perl -M$m -e "print $m->VERSION,qq{\n};"
# Execute this from command line as perlver <module>
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© | users online: 6