Parse::BACKPAN::Packages::File - Represent a file on BACKPAN
my $p = Parse::BACKPAN::Packages->new(); my $file = $p->file("authors/id/L/LB/LBROCARD/Acme-Colour-0.16.tar.gz"); print " Date: " . $file->date . "\n"; print "Prefix: " . $file->prefix . "\n"; print " Size: " . $file->size . "\n"; print " URL: " . $file->url . "\n";
Parse::BACKPAN::Packages::File objects represent files on BACKPAN.
The date method returns the upload date of the file, in UNIX epoch seconds:
print " Date: " . $file->date . "\n";
The prefix method returns the prefix of the file:
print "Prefix: " . $file->prefix . "\n";
The size method returns the size of the file in bytes:
print " Size: " . $file->size . "\n";
The url method returns a URL to the file:
print " URL: " . $file->url . "\n";
Leon Brocard <acme@astray.com>
Copyright (C) 2005, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
Parse::BACKPAN::Packages
To install Parse::BACKPAN::Packages, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::BACKPAN::Packages
CPAN shell
perl -MCPAN -e shell install Parse::BACKPAN::Packages
For more information on module installation, please visit the detailed CPAN module installation guide.