For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > October 2004 > Version? of getopt::Long









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Version? of getopt::Long
Mark J Fenbers

2004-10-04, 3:57 pm

I'm giving tech support to someone and suspect his version od
GetOpt::Long is older than mine. What simple test can be given on the
command-line to determine what version is being used on his computer?
Perhaps something like:

perl -MAppConfig -e' print_version()'

or something along those lines...

Mark

Bill Karwin

2004-10-04, 3:57 pm

Mark J Fenbers wrote:
> I'm giving tech support to someone and suspect his version od
> GetOpt::Long is older than mine. What simple test can be given on the
> command-line to determine what version is being used on his computer?
> Perhaps something like:
>
> perl -MAppConfig -e' print_version()'


Most Perl modules should have a package-level global variable called
$VERSION. So you can do this Perl one-liner to print the version:

perl -MSomePackage -e 'print "$SomePackage::VERSION\n";'

Regards,
Bill K.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com