in reply to Re^3: Add Perl Varibles in system()
in thread Add Perl Varibles in system()

Bugs:

You also introduced four bugs in the error handling!

Fixed:

system( 'nmap', $ver, $os, $target, '-oG', 'pentest.txt' ) or die "nmap failed" $!/$?\n";