parse::debian::packages(3pm) debian man page | unix.com

Man Page: parse::debian::packages

Operating Environment: debian

Section: 3pm

Parse::Debian::Packages(3pm)				User Contributed Perl Documentation			      Parse::Debian::Packages(3pm)

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.
METHODS
new( $filehandle ) next Iterate to the next package in the file, returns either a hash containing a package description, or false at end of file. as_hash( $filehandle ) Return all the packages from a filehandle as a hash of hashes.
AUTHOR
Richard Clamp <richardc@unixbeard.net> with as_hash implementation by Thomas Klausner.
COPYRIGHT
Copyright (C) 2003,2005,2012 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 perl v5.14.2 2012-03-11 Parse::Debian::Packages(3pm)
Related Man Pages
dpkg-scanpackages(1) - linux
dpkg-scanpackages(1) - debian
dpkg-scanpackages(1) - xfree86
dpkg-scanpackages(1) - freebsd
dpkg-scanpackages(1) - mojave
Similar Topics in the Unix Linux Community
Parse error
Parse comma delimited and optionally quotes dimilited file
Internet dying in Debian?
creating packages in perl
Perl, open multiple files with wildcards