Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-12-10 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (40 votes). Check out past polls.

    Notices?