Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: do-ing of file without \n at the end

by sgifford (Prior)
on Mar 31, 2007 at 06:31 UTC ( [id://607608]=note: print w/replies, xml ) Need Help??


in reply to Re^2: do-ing of file without \n at the end
in thread do-ing of file without \n at the end

$! is undefined if no error has occured, and so can be set to absolutely anything. It's not clear to me why Perl ends up setting it to this particular value under these circumstances (I see the same thing on my machine), but that's really a trivia question; since the behavior is undefined, any value is valid.

Replies are listed 'Best First'.
Re^4: do-ing of file without \n at the end
by ikegami (Patriarch) on Apr 02, 2007 at 00:34 UTC
    Bad file descriptor is error 0 on some systems. It means someone did $! = 0; under the false assumption that 0 meant success. Or as a favour for those who make that assumption.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found