Richard Clamp > Parse-Debian-Packages-0.01 > Parse::Debian::Packages

Download:
Parse-Debian-Packages-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View Bugs
Report a bug
Module Version: 0.01   Source  

NAME ^

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

SYNOPSIS ^

 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 ^

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 ^

Richard Clamp <richardc@unixbeard.net>

COPYRIGHT ^

Copyright (C) 2003 Richard Clamp. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

Module::Packaged