Léon Brocard > Parse-BACKPAN-Packages > Parse::BACKPAN::Packages::Distribution

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

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Parse::BACKPAN::Packages::Distribution - Represent a distribution on BACKPAN

SYNOPSIS ^

  my $p = Parse::BACKPAN::Packages->new();
  my @acme_colours = $p->dists("Acme-Colour");

  print "   CPANID: " . $acme_colours[0]->cpanid . "\n";
  print "     Date: " . $acme_colours[0]->date . "\n";
  print "     Dist: " . $acme_colours[0]->dist . "\n";
  print "Distvname: " . $acme_colours[0]->distvname . "\n";
  print " Filename: " . $acme_colours[0]->filename . "\n";
  print " Maturity: " . $acme_colours[0]->maturity . "\n";
  print "   Prefix: " . $acme_colours[0]->prefix . "\n";
  print "  Version: " . $acme_colours[0]->version . "\n";

DESCRIPTION ^

Parse::BACKPAN::Packages::Distribution objects represent distributions on BACKPAN. They are turned from dists() ordered from oldest to newest.

METHODS ^

cpanid

The cpanid method returns the PAUSE ID of the author of the distribution.

  print "   CPANID: " . $acme_colours[0]->cpanid . "\n";

date

The date method returns the data of the release of the distribution, in UNIX epoch seconds:

  print "     Date: " . $acme_colours[0]->date . "\n";

dist

The dist method returns the name of the distribution:

  print "     Dist: " . $acme_colours[0]->dist . "\n";

distvname

The distvname method returns the name of the distribution, hyphen, and the version:

  print "Distvname: " . $acme_colours[0]->distvname . "\n";

filename

The filename method returns the filename of the distribution:

  print " Filename: " . $acme_colours[0]->filename . "\n";

maturity

The maturity method returns the maturity of the distribution:

  print " Maturity: " . $acme_colours[0]->maturity . "\n";

prefix

The prefix method returns the prefix of the distribution:

  print "   Prefix: " . $acme_colours[0]->prefix . "\n";

version

The version method returns the version of the distribution:

  print "  Version: " . $acme_colours[0]->version . "\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: