1Parse::Debian::PackagesU(s3e)r Contributed Perl DocumentaPtairosne::Debian::Packages(3)
2
3
4

NAME

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

SYNOPSIS

9        use YAML;
10        use IO::File;
11        use Parse::Debian::Packages;
12        my $fh = IO::File->new("Packages");
13
14        my $parser = Parse::Debian::Packages->new( $fh );
15        while (my %package = $parser->next) {
16            print Dump \%package;
17        }
18

DESCRIPTION

20       This module parses the Packages files used by the debian package
21       management tools.
22
23       It presents itself as an iterator.  Each call of the ->next method will
24       return the next package found in the file.
25
26       For laziness, we take a filehandle in to the constructor.  Please open
27       the file for us.
28

METHODS

30   new( $filehandle )
31   next
32       Iterate to the next package in the file, returns either a hash
33       containing a package description, or false at end of file.
34
35   as_hash( $filehandle )
36       Return all the packages from a filehandle as a hash of hashes.
37

AUTHOR

39       Richard Clamp <richardc@unixbeard.net> with as_hash implementation by
40       Thomas Klausner.
41
43       Copyright (C) 2003,2005,2012 Richard Clamp.  All Rights Reserved.
44
45       This module is free software; you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47

SEE ALSO

49       Module::Packaged
50
51
52
53perl v5.32.1                      2021-01-27        Parse::Debian::Packages(3)
Impressum