Subject: | SYNOPSIS of DPKG::Parse::Available missing 'parse' method |
Two issues here really..
The synopsis of DPKG::Parse::Available shows :
############################
use DPKG::Parse::Available;
my $available = DPKG::Parse::Available->new;
while (my $entry = $available->next_package) {
print $entry->package . " " . $entry->version . "\n";
}
my $postfix = $available->get_package('name' => 'postfix');
############################
But it won't work without calling parse() on $available before using the
object.
The second issue is obviously that you don't get an error or warning
when attempting to use the object without calling parse() first.
fixed SYNOPSIS should read :
############################
use DPKG::Parse::Available;
my $available = DPKG::Parse::Available->new( );
$available->parse();
while (my $entry = $available->next_package) {
print $entry->package . " " . $entry->version . "\n";
}
############################