That's about the simplest approach I can think of, especially if you subclass Tie::Handle.
In reply to Re: Munging STDIN and STDOUT into one handle
by chromatic
in thread Munging STDIN and STDOUT into one handle
by Rhandom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |