in reply to Re^2: <> oddity ?
in thread <> oddity ?
> Why would this program then NOT wait for any further input via STDIN ?
Perl can't read your mind, if you want to read from STDIN, explicitly use STDIN instead of stretching DWIM magic behavior till it breaks.
UPDATE:
actually your example is reading from STDIN, but maybe you should stop the redirecting from file to STDIN if you wanna read from interactive input (keyboard).
see select
Cheers Rolf
( addicted to the Perl Programming Language)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: <> oddity ?
by Krambambuli (Curate) on Mar 27, 2013 at 12:18 UTC | |
Re^4: <> oddity ?
by Krambambuli (Curate) on Mar 27, 2013 at 11:58 UTC |
In Section
Seekers of Perl Wisdom