Léon Brocard > Parse-BACKPAN-Packages-0.36 > Parse::BACKPAN::Packages::File

Download:
Parse-BACKPAN-Packages-0.36.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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 ^

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

syntax highlighting: