|
Thanks for Nmap::Parser! I had a need and it fit it perfectly.
With warnings turned on, I get an "uninitialized value" in Twig.pm line 2466 from this code:
#!/usr/bin/perl -w
use strict;
use Nmap::Parser;
my $path = '/usr/bin/nmap';
my $args = '-sP';
my @ips = qw/192.168.100.104/;
my $nmap = new Nmap::Parser;
$nmap->parsescan ($path, $args, @ips);
for my $host ($nmap->all_hosts()) {
print $host->addr."\n";
}
Line 2466: last if( $elt == $last_elt);
I realize this stems from another module, and I can remedy it by s/-w//, but I thought I'd bring it to, well, anybody's attention.
Thanks again.
|