Holds a list of Nmap::Scanner::Port objects. get_next() returns a port reference while there are ports in the list and returns undef when the list is exhausted. Port lists are sorted internally by port number.
get_next_tcp() and get_next_udp() will return the next port of either protocol; get_next() returns first tcp then udp.
To install Nmap::Scanner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nmap::Scanner
CPAN shell
perl -MCPAN -e shell install Nmap::Scanner
For more information on module installation, please visit the detailed CPAN module installation guide.