in reply to Re: Re: array problem
in thread array problem
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;
|
|---|