NAME

CPAN::DistnameInfo - Extract distribution name and version from a distribution filename

SYNOPSIS

my $filename = "CPAN-DistnameInfo-0.01.tar.gz";

# ("CPAN-DistnameInfo","0.01",undef)
my ($name, $version, $isdev) = distname_info($filename); 

DESCRIPTION

Many online services that are centered around CPAN attempt to associate multiple uploads by extracting a distribution name from the filename of the upload. For most distributions this is easy as they have used ExtUtils::MakeMaker or Module::Build to create the distribution, which results in a uniform name. But sadly not all uploads are created in this way.

distname_info uses heuristics that have been learnt by http://search.cpan.org/ to extract the distribution name and version from filenames and also report if the version is to be treated as a developer release

AUTHOR

Graham Barr <gbarr@pobox.com>

COPYRIGHT

Copyright (c) 2003 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.