szabgab has asked for the wisdom of the Perl Monks concerning the following question:
When trying to locate the version number I keep using this:
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"'
perldoc showing version number?
In many modules I see people embed the version number in the POD so the reader will know. This can quickly get out of sync with the real version number. Would it be better/possible to have perldoc extract the version number of a module - when displaying the docs of a module - and show that along the documentation?
|
---|
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 |
Back to
Seekers of Perl Wisdom