Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: "Impossible" socket error return

by ikegami (Pope)
on Sep 27, 2011 at 23:36 UTC ( #928204=note: print w/replies, xml ) Need Help??

in reply to "Impossible" socket error return

How can it get undef back, without $! being set?

readline (for which <$fh> is a shortcut) returns undef on end of file as well as on error.

By the way, there's no way to know if $! is meaningful after readline because readline has no way of signaling an error occurred.

Replies are listed 'Best First'.
Re^2: "Impossible" socket error return
by dd-b (Monk) on Sep 28, 2011 at 14:55 UTC
    Thanks! Yes, it was indeed the obvious. Bug in another bit entirely was causing it to disconnect at an inopportune moment.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2016-10-22 00:35 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.