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

Re: unable to open existing file after trying to open a non-existing one

by asarih (Hermit)
on Sep 23, 2003 at 15:42 UTC ( #293540=note: print w/replies, xml ) Need Help??


in reply to unable to open existing file after trying to open a non-existing one

For one thing, I think you're confusing Perl's open and C's open. Perl's open returns 1 if successful, whereas C's open() returns 0.

Update: While the above statement is true, the OP is not confused. I'm the one who is confused about what OP's code was doing. Apologies.

  • Comment on Re: unable to open existing file after trying to open a non-existing one
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-08-08 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?