P5U::Lib::Version - support library implementing p5u's version command
use P5U::Lib::Version; my @lines = P5U::Lib::Version->local_module_info($module);
This is a support library for the version command.
local_module_info($module)
Locates a Perl module on the local machine, searching through @INC. For each file found (there may be mre than one) finds the version number of the module.
Returns a list of strings formatted like "FILE: VERSION".
"FILE: VERSION"
cpan_module_info($module)
As per local_module_info but searches CPAN using the MetaCPAN API.
local_module_info
Returns a list of strings formatted like "cpan:AUTHOR/TARBALL#FILE: VERSION (DATE)".
"cpan:AUTHOR/TARBALL#FILE: VERSION (DATE)"
backpan_module_info($module)
As per local_module_info but searches BackPAN using the MetaCPAN API.
Returns a list of strings formatted like "backpan:AUTHOR/TARBALL#FILE: VERSION (DATE)".
"backpan:AUTHOR/TARBALL#FILE: VERSION (DATE)"
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=P5U.
p5u, V.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install P5U, copy and paste the appropriate command in to your terminal.
cpanm
cpanm P5U
CPAN shell
perl -MCPAN -e shell install P5U
For more information on module installation, please visit the detailed CPAN module installation guide.