The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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