That's the best way I've found. You might find the tests for Term::Complete interesting; that was the most challenging test I've ever written, I/O wise.
I don't have time to check right now, but can you tie *ARGV to fix readline() without a filehandle or a scalar? Something in the back of my brain thinks I've done this before.
In reply to Re: Pre-empting STDIN during Testing
by chromatic
in thread Pre-empting STDIN during Testing
by jkeenan1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |