in reply to
neglect warnings in open 3 HANDLE_OUT
You don't show the part of the code that does the printing, so it's difficult to say how you should modify it in order to avoid your unwanted output. If you can clearly delineate what makes a line a "BEA warning" or not, then you could skip them perhaps w/ Loop Control:
next if /<BEA-\d+>/;
This of course assumes that the warnings in question are being emitted on STDOUT and not STDERR.
If this solution is not what you are looking for, provide us with the entire STDOUT stream from your system call and the desired output from your program, as well as the entire block of read-and-output code that is presently not working for you.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.