in reply to STDIN schizofrenia

I'd skip the redirection. You can get the names of files from the command line in @ARGV and read them from the convenient default diamond <> (e.g. perl -e'print while <>' *.txt ). That leaves you free to use yout tty for STDIN.

After Compline,
Zaxo