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;
In reply to Re: Re: Re: array problem
by welchavw
in thread array problem
by bory
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |