I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-11-10 13:48:06-08 by dossy in response to 9257
Re: Output format syntax
According to the Nmap::Parser documentation, Nmap::Parser::Host's tcp_ports() method returns a sorted list of ports. See:

http://search.cpan.org/dist/Nmap-Parser/Parser.pm#Nmap::Parser::Host

Replace this line:

print $host->addr,":",$host->tcp_ports('open'),"\n";

with this:

printf("%s:%s\n", $host->addr, $_) for ($host->tcp_ports('open'));
Direct Responses: Write a response