Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: uninitialized value $_by Anonymous Monk |
on Mar 28, 2016 at 17:04 UTC ( [id://1158965]=note: print w/replies, xml ) | Need Help?? |
Are you saying that STDIN is getting opened and closed every time a line is read? I guess that would explain why there is nothing there. :)
How about a small variation where I need to print something (a prompt or line number) on the terminal before reading the line (so I couldn't have <> in the loop control)? The (broken) code would be something like:
In Section
Seekers of Perl Wisdom
|
|