in reply to Re: array problem
in thread array problem

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!!

Replies are listed 'Best First'.
Re: Re: Re: array problem
by LordWeber (Monk) on Sep 12, 2003 at 13:48 UTC
    Re: Re: Re: array problem
    by welchavw (Pilgrim) on Sep 12, 2003 at 15:47 UTC

      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;