Subject: | MultiTail bug |
Date: | Thu, 13 Aug 2009 15:05:59 -0500 |
To: | <bug-MultiTail [...] rt.cpan.org> |
From: | "Doty, Timothy T." <tdoty [...] mst.edu> |
MultiTail 0.5 has a bug that prevents setting any parameters to a value of
zero. This is a problem with, for example, the NumLines parameter as it
forces a minimum of the last line to be read from a file.
The problem comes from lines 98 to 100:
foreach my $keys ( keys %$args ) {
$args->{$keys}=$Default{$keys} unless $args->{$keys};
}
Even those that are supposed to allow a value of zero don't due to the
faulty logic. This should rather be:
foreach my $keys ( keys %$args ) {
$args->{$keys}=$Default{$keys} unless defined(
$args->{$keys} );
}
Tim Doty
Systems Security Analyst
Missouri S&T
Message body not shown because it is not plain text.