This module uses stolen code from C<Module::Info> to find the location and version of the specified module(s). It prints them and exit()s.
It works by definening C<import()> and is based on an idea from Michael Schwern on the perl5-porters list. See the discussion:
L<http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg00760.html>
$ perl -MV=CPAN
or if you want more than one
$ perl -MV=CPAN,V
INSTALLATION
To install this module type the following:
perl Makefile.PL
make test
make install
DEPENDENCIES
This module requires no other modules or libraries (exept Test::More for the test-suite).
COPYRIGHT AND LICENCE
Copyright (c) 2002 Abe Timmerman <abeltje@cpan.org>. 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.