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:
in reply to Re^2: neglect warnings in open 3 HANDLE_OUT
in thread neglect warnings in open 3 HANDLE_OUT
which is pretty much what I posted above.
next if /<BEA-\d+>/;
next if !/\S/;
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.