גאבור סבו - Gábor Szabó > Parse-Fedora-Packages-0.02 > Parse::Fedora::Packages

Download:
Parse-Fedora-Packages-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source   Latest Release: Parse-Fedora-Packages-0.06

NAME ^

Parse::Fedora::Packages - Parse Fedora package information

SYNOPSIS ^

 use Fedora;
 my $f = Fedora->new;
 $f->parse_primary("primary.xml");

 my @all = $p->list_packages();

 print $all[0]->{name};
 print $all[0]->{version};

METHODS ^

new

Constructor

  my $p = Parse::Fedora::Packages->new

parse_primary

Given a primary.xml file it will read it into memory and parse it.

Returns nothing.

Throws exception if the file is invalid xml.

   $p->parse_primary("primary.xml");

reported_count_packages

returns list of packages (sub xml)

count_packages

returns number of packages

syntax highlighting: