My advice would be that you should always check the return value from an open call, but that die is not always the most appropriate response to a failure.
Don't get me wrong - I'm sure that in 95% of cases (at least) is is the best action, but there are definitely times where alternative courses of action (log the error and move on, perhaps) would be more appropriate.
--In reply to RE: Re: open() destroying my vars?
by davorg
in thread open() destroying my vars?
by theorbtwo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |