![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^3: <> oddity ?by LanX (Sage) |
on Mar 27, 2013 at 11:50 UTC ( #1025690=note: print w/replies, xml ) | Need Help?? |
> 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)
In Section
Seekers of Perl Wisdom
|
|