but I can't seem to figure out how to reopen STDIN to the keyboard device. Any hints?
You could use:
open STDIN, '/dev/tty' or die "open: /dev/tty: $!";
Or you could just open another filehandle (e.g. TTY) and read the user input from that, rather than from STDIN.
There's also the family of Term::Readline modules on CPAN.
-- Steve
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>