perl5ever has asked for the wisdom of the Perl Monks concerning the following question:
Is there a CPAN module which extracts the author, module and version from strings like:
MSERGEANT/Time-Piece-1.20.tar.gz http://backpan.perl.org/authors/id/A/AR/ARANDAL/Pod-Simple-3.07.tar.gz http://search.cpan.org/CPAN/authors/id/T/TE/TELS/math/Math-BigInt-1.89 +.tar.gz
Are there any other odd-ball cases like the Math-BigInt url?
Alternatively, what's your favorite method/regexp to parse them?
Note: I realize that the _correct_ module and version won't always be derivable from the CPAN url, but I am only looking for something which gives the best guess at what they should be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parsing CPAN urls
by bingos (Vicar) on May 12, 2011 at 19:09 UTC | |
|
Re: parsing CPAN urls
by Khen1950fx (Canon) on May 12, 2011 at 20:41 UTC | |
|
Re: parsing CPAN urls
by educated_foo (Vicar) on May 12, 2011 at 19:31 UTC | |
|
Re: parsing CPAN urls
by DrHyde (Prior) on May 13, 2011 at 09:25 UTC | |
by educated_foo (Vicar) on May 13, 2011 at 10:03 UTC |