I really dont know what ->scan does upon errors. What I have tried is this:
my $results; eval{ $results = $scanner->scan("-v -sP $r[0]/$r[1]"); }; print STDERR "Error catched: $@\n" if($@);
But, this does not catch it. The while loop still ends right there.
In reply to Re^2: Nmap::Scanner breaks my while loop, I think
by jantelar
in thread Nmap::Scanner breaks my while loop, I think
by jantelar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |