in reply to capturing output from open |

You might also want to check out IPC::Run3, which handles this kind of thing fairly elegantly.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.