in reply to Last service name comes up empty in NMAP Parser

To me the telling thing was that the ":" for the last was on its own line.... like there was an odd "\n".... AHHAH

my $fct_openPort = (join ',',$fct_host_obj->tcp_ports('open'))."\n" ; my @fct_ports = split ',', $fct_openPort;
The last member of @fct_ports is terminated with a "\n"

Replies are listed 'Best First'.
Re^2: Last service name comes up empty in NMAP Parser
by Noosrep (Novice) on Jan 18, 2017 at 11:23 UTC
    Yeah, you're right.. Removing the /n did the trick. Unbelievable I didn't notice it right there