1V(3) User Contributed Perl Documentation V(3)
2
3
4
6 V - Print version of the specified module(s).
7
9 $ perl -MV=V
10
11 or if you want more than one
12
13 $ perl -MV=CPAN,V
14
15 Can now also be used as a light-weight module for getting versions of
16 modules without loading them:
17
18 BEGIN { $V::NO_EXIT = 1 }
19 require V;
20
21 printf "%s has version '%s'\n", "V", V::get_version( "V" );
22
24 This module uses stolen code from Module::Info to find the location and
25 version of the specified module(s). It prints them and exit()s.
26
27 It defines "import()" and is based on an idea from Michael Schwern on
28 the perl5-porters list. See the discussion:
29
30 http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg00760.html
31
33 Abe Timmerman "<abeltje@cpan.org>".
34
36 Copyright 2002-2006 Abe Timmerman, All Rights Reserved.
37
38 This library is free software; you can redistribute it and/or modify it
39 under the same terms as Perl itself.
40
41 This program is distributed in the hope that it will be useful, but
42 WITHOUT ANY WARRANTY; without even the implied warranty of
43 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
44
45
46
47perl v5.28.1 2007-11-07 V(3)