1V(3)                  User Contributed Perl Documentation                 V(3)
2
3
4

NAME

6       V - Print version of the specified module(s).
7

SYNOPSIS

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           require V;
19           printf "%s has version '%s'\n", "V", V::get_version( "V" );
20
21       If you want all available files/versions from @INC:
22
23           require V;
24           my @all_V = V::Module::Info->all_installed("V");
25           printf "%s:\n", $all_V[0]->name;
26           printf "\t%-50s - %s\n", $_->file, $_->version
27               for @all_V;
28
29       Each element in that array isa "V::Module::Info" object with 3
30       attributes and a method:
31
32       attribute name
33           The package name.
34
35       attribute file
36           Full filename with directory.
37
38       attribute dir
39           The base directory (from @INC) where the package-file was found.
40
41       method version
42           This method will look through the file to see if it can find a
43           version assignment in the file and uses that determine the version.
44           As of version 0.13_01, all versions found are passed through the
45           version module.
46

DESCRIPTION

48       This module uses stolen code from Module::Info to find the location and
49       version of the specified module(s). It prints them and exit()s.
50
51       It defines "import()" and is based on an idea from Michael Schwern on
52       the perl5-porters list. See the discussion:
53
54         https://www.nntp.perl.org/group/perl.perl5.porters/2002/01/msg51007.html
55
56   V::get_version($pkg)
57       Returns the version of the first available file for this package as
58       found by following @INC.
59
60       Arguments
61
62       1. $pkg
63           The name of the package for which one wants to know the version.
64
65       Response
66
67       This "V::get_version()" returns the version of the file that was first
68       found for this package by following @INC or "undef" if no file was
69       found.
70

AUTHOR

72       Abe Timmerman "<abeltje@cpan.org>".
73
75       Copyright 2002-2006 Abe Timmerman, All Rights Reserved.
76
77       This library is free software; you can redistribute it and/or modify it
78       under the same terms as Perl itself.
79
80       This program is distributed in the hope that it will be useful, but
81       WITHOUT ANY WARRANTY; without even the implied warranty of
82       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
83
84
85
86perl v5.36.0                      2022-07-22                              V(3)
Impressum