in reply to Re^2: neglect warnings in open 3 HANDLE_OUT
in thread neglect warnings in open 3 HANDLE_OUT
Perhaps I just don't understand what you mean by "at single go"; given that your output stream is naturally new-line delimited, I fail to see the problem encountered by:
which is pretty much what I posted above.while(<HANDLE_OUT>) { next if /<BEA-\d+>/; next if !/\S/; print; }
Update: And then this node's parent added
I am using backtick I want to parse this. print `$command`;Are you using IPC::Open3 or are you using backticks? For the latter, you would presumably need to capture the output filter it, probably by splitting on new-lines and feeding it through the loop above.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: neglect warnings in open 3 HANDLE_OUT
by sandeepda (Novice) on May 14, 2013 at 14:15 UTC | |
by kennethk (Abbot) on May 14, 2013 at 14:23 UTC | |
by roboticus (Chancellor) on May 14, 2013 at 16:09 UTC |
In Section
Seekers of Perl Wisdom