replacing print with a sub out() should be straight forward.
Opening a FH to a var is described in open#Opening-a-filehandle-into-an-in-memory-scalar and you already mentioned select
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^3: Preprocessing print statements
by LanX
in thread Preprocessing print statements
by mauroid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |