Alternatively, you can actually read from STDERR, just as you might print status or error messges to STDERR. If your reading inout from stdin, you might want to be able to write output to stdout too, rather than having your prompts go to stdout. You can print your prompts to STDERR or open the tty read/write "+</dev/tty".while (<>) { $stream .= $_; } open TTY, "</dev/tty"; print "Do you want to process the stream?"; my $ans = <TTY>;
In reply to Re: Multiple STDIN sources
by raymor
in thread Multiple STDIN sources
by perlfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |