This module uses stolen code from
Module::Info
to find the location
and version of the specified module(s). It prints them and exit()s.
It works by definening import()
and is based on an idea from Michael Schwern
on the perl5-porters list. See the
discussion
$ perl -MV=CPAN
CPAN
/opt/homebrew/opt/perl/lib/perl5/5.38/CPAN.pm: 2.36
or if you want more than one package
$ perl -MV=CPAN,V
As of version 0.17 it will show all package
s and class
es in a file with
a version. (If one wants all packages/classes in the files, set the
environment variable PERL_V_SHOW_ALL
)
$ perl -MV=SOAP::Lite
SOAP::Lite
/opt/homebrew/opt/perl/lib/perl5/site_perl/5.38/SOAP/Lite.pm:
SOAP::Lite: 1.27
SOAP::Client: 1.27
To install this module type the following commands:
perl Makefile.PL
make test
make install
This module requires no extra modules or libraries from perl version 5.10.1
(exept Test::More
,
Test::Warnings
,
Test::Fatal
for the test-suite).
To get more info on the programming interface see perldoc V
© 2002 Abe Timmerman [email protected]. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.