Also, it would be useful to know how the script is being called. If you're running it by calling (dumb example):
$ echo '' | myscript.pl
then I can see the problem.
LAI
:eof
In reply to Re^2: STDIN behaves different according to context
by LAI
in thread STDIN behaves different according to context
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |