in reply to Multiple STDIN sources
Basically, perl blows right past the "my $ans = <STDIN>;" line.Really? Not for me. I've added the following lines before your exit:
And this is what I get when running:chomp $ans; print "Got '$ans'\n"; print "stream = $stream";
$ ./stdin foo bar ^D Do you want to process the stream?yes Got 'yes' stream = foo bar $
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Multiple STDIN sources
by The Mad Hatter (Priest) on Mar 10, 2004 at 00:29 UTC | |
by Abigail-II (Bishop) on Mar 10, 2004 at 00:40 UTC |