I'm not sure I understand from your question quite what you are trying to achieve but I wonder if IO::Tee might serve your needs.
Cheers,
JohnGG
In reply to Re: Copy contents of STDOUT
by johngg
in thread Copy contents of STDOUT
by perl_is_fun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |