|Pathologically Eclectic Rubbish Lister|
Re^3: <> oddity ?by LanX (Canon)
|on Mar 27, 2013 at 11:44 UTC||Need Help??|
> That is still strange...
Is it really?
I mean what is this code actually supposed to do?
Let's say it clearly: Reading from an exhausted filehandle is nonsense!
Just the fact that this filehandle is magic leads to undefined behavior, because interactice input can't be exhausted.
Using either STDIN or ARGV here to is not only better, it explicitly demonstrates the intention of this line.
( addicted to the Perl Programming Language)