Parse::Fedora::Packages - Parse Fedora package information
use Fedora; my $f = Fedora->new; $f->parse_primary("primary.xml"); my @all = $p->list_packages(); print $all[0]->{name}; print $all[0]->{version};
Constructor
my $p = Parse::Fedora::Packages->new
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");
returns list of packages (sub xml)
returns number of packages
To install Parse::Fedora::Packages, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Fedora::Packages
CPAN shell
perl -MCPAN -e shell install Parse::Fedora::Packages
For more information on module installation, please visit the detailed CPAN module installation guide.