szabgab has asked for the wisdom of the Perl Monks concerning the following question:
on Windows andperl -MLong::And::Stupid::Module::Name -e "print $Long::And::Stupid::M +odule::Name::VERSION"
on Linux I even have a small shell script doing this for me but it is not always with me.perl -MLong::And::Stupid::Module::Name -e 'print $Long::And::Stupid::M +odule::Name::VERSION'
Is there any better way to do that?#! /bin/sh perl -m$1 -le 'print '$1'->VERSION || die "No VERSION in '$1'\n"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get the version of an installed module?
by ikegami (Patriarch) on Feb 01, 2011 at 07:08 UTC | |
by roboticus (Chancellor) on Feb 01, 2011 at 11:08 UTC | |
|
Re: How to get the version of an installed module?
by Khen1950fx (Canon) on Feb 01, 2011 at 08:56 UTC | |
|
Re: How to get the version of an installed module?
by planetscape (Chancellor) on Feb 01, 2011 at 11:35 UTC | |
|
Re: How to get the version of an installed module?
by JavaFan (Canon) on Feb 01, 2011 at 12:34 UTC | |
by Tux (Canon) on Feb 02, 2011 at 00:13 UTC | |
|
Re: How to get the version of an installed module?
by JavaFan (Canon) on Feb 01, 2011 at 12:43 UTC |