Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: <> oddity ?

by LanX (Canon)
on Mar 27, 2013 at 11:44 UTC ( #1025688=note: print w/ replies, xml ) Need Help??


in reply to Re^2: <> oddity ?
in thread <> oddity ?

> 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.

Cheers Rolf

( addicted to the Perl Programming Language)


Comment on Re^3: <> oddity ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025688]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2015-07-29 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls