in reply to catch the output of a command

You can also do it like
open(MYIN,"netstat |") || die "Can't netstat: $!"; @connectInfo = <MYIN>; . . .
The advantage with this is that you get to check the status of the command.

/\/\averick