Nmap::Scanner::PortList(3p)

  DESCRIPTION
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.