Parse::Debian::Packages - parse the data from a debian Packages.gz


Parse-Debian-Packages documentation  | view source Contained in the Parse-Debian-Packages distribution.

Index


NAME

Top

Parse::Debian::Packages - parse the data from a debian Packages.gz

SYNOPSIS

Top

 use YAML;
 use IO::File;
 use Parse::Debian::Packages;
 my $fh = IO::File->new("Packages");

 my $parser = Parse::Debian::Packages->new( $fh );
 while (my %package = $parser->next) {
     print Dump \%package;
 }

DESCRIPTION

Top

This module parses the Packages files used by the debian package management tools.

It presents itself as an iterator. Each call of the ->next method will return the next package found in the file.

For laziness, we take a filehandle in to the constructor. Please open the file for us.

AUTHOR

Top

Richard Clamp <richardc@unixbeard.net>

COPYRIGHT

Top

SEE ALSO

Top

Module::Packaged


Parse-Debian-Packages documentation  | view source Contained in the Parse-Debian-Packages distribution.