NAME

version.pl - extracts module data from installed and uninstalled modules

SYNOPSIS

% version.pl DBI

% version.pl XML::Simple

% version.pl ~jonasbn/Develop/Games/Bingo/lib/Games/Bingo.pm

% version.pl version.pl

% version.pl /System/Library/Perl/5.8.1

README

This script extracts module data from installed and uninstalled modules and script, targetting especially the version information.

DESCRIPTION

The script takes either a module name (SEE "SYNOPSIS"), a path to a Perl module, script file or a directory.

The script looks for a package definition and a version variable.

The script is quite simple, the Module::Info::File and Mattia Barbon's Module::Info holds all the interesting stuff.

In the beginning I was using Module::Info, but due to a lacking functionality in this module I created Module::Info::File, which inherits from Module::Info and replaces the new_from_file method so the lacking data can be accessed. Apart from that you can use all the neat accessors from Module::Info.

The script gives to kinds of input depending on how it was called:

For single modules, module og script files:

<modulename> located in <directory location> is version: <versions number>

Example:

Test::More located in /System/Library/Perl/5.8.1 is version: 0.47

Or when called with a directory as argument (one line per located module):

<module name> <tab> <version number>

Example:

DBI;1.38 Irssi;0.9 Mysql;1.2401 Bundle::DBI;11.03 Bundle::DBD::mysql;2.9002

SCRIPT CATEGORIES

Search

UNIX : System_administration

PREREQUISITES

Module::Info::File 0.07
Module::Info 0.20
File::Basename
File::Find
File::Spec
Data::Dumper

OSNAMES

any

SEE ALSO

Module::Info
Module::Info::File

AUTHOR

jonasbn <jonasbn@cpan.org>

COPYRIGHT

version.pl is free software and is released under the Artistic License. See <http://www.perl.com/language/misc/Artistic.html> for details.

version.pl is (C) 2003-2004 Jonas B. Nielsen (jonasbn) <jonasbn@cpan.org>