It is a very good ideea but i am not sure if qx returns separate items for
output! I relly don't think so! Do you know any quotelike operators that returns separate
items for output! Thank you for your time!!
Wait...qx will return a list of command output lines...if your pipeline outputs newline separated lines, then you'll get a list of the kind that you seem to want.
Compare this code and its outputs with what you have done.
my @a = map {s/\n//g ? $_ : ()} `netstat -an`;
print "$_\n" for @a;