Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^5: Hmmm: while(), file handle and $_ gotcha

by Porculus (Hermit)
on Mar 06, 2009 at 21:47 UTC ( [id://748970]=note: print w/replies, xml ) Need Help??

in reply to Re^4: Hmmm: while(), file handle and $_ gotcha
in thread Hmmm: while(), file handle and $_ gotcha

For small values of "required".

print( scalar <DATA> // die "Premature EOF\n" );

(But don't do that, because the version with the explicit variable is obviously right, whereas the version without one forces the reader to pause and wonder whether it will work or not. So it is, I suppose, required in the sense of "required by any sane coding standards" ...)

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-22 00:48 GMT
Find Nodes?
    Voting Booth?

    No recent polls found