in reply to Re^2: capturing output from open |in thread capturing output from open |
You could pipe STDERR to another or the very same script.
see perldoc perlipc and search for Safe Pipe Opens.