NAME

P5U::Lib::Version - support library implementing p5u's version command

SYNOPSIS

 use P5U::Lib::Version;
 my @lines = P5U::Lib::Version->local_module_info($module);

DESCRIPTION

This is a support library for the version command.

Class Methods

local_module_info($module)

Locates a Perl module on the local machine, searching through @INC. For each file found (there may be more than one) finds the version number of the module.

Returns a list of strings formatted like "FILE: VERSION".

cpan_module_info($module)

As per local_module_info but searches CPAN using the MetaCPAN API.

Returns a list of strings formatted like "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)".

BUGS

Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=P5U.

SEE ALSO

p5u, V.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2012-2013 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.

DISCLAIMER OF WARRANTIES

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.