Parse::BACKPAN::Packages::File.3pm

Langue: en

Autres versions - même langue

Version: 2009-06-27 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Parse::BACKPAN::Packages::File - Represent a file on BACKPAN

SYNOPSIS

   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";
 
 

DESCRIPTION

Parse::BACKPAN::Packages::File objects represent files on BACKPAN.

METHODS

date

The date method returns the upload date of the file, in UNIX epoch seconds:
   print "  Date: " . $file->date . "\n";
 
 

prefix

The prefix method returns the prefix of the file:
   print "Prefix: " . $file->prefix . "\n";
 
 

size

The size method returns the size of the file in bytes:
   print "  Size: " . $file->size . "\n";
 
 

url

The url method returns a URL to the file:
   print "   URL: " . $file->url . "\n";
 
 

AUTHOR

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.

SEE ALSO

Parse::BACKPAN::Packages