http://www.perlmonks.org?node_id=310412


in reply to open failure code

In addition to the useful advice you've got so far, I would like to point out that programming with flag variables is not always a good idea.

See this discussion on flag variables for more material on this subject.

HTH

Replies are listed 'Best First'.
Re: Re: open failure code
by RolandGunslinger (Curate) on Nov 26, 2003 at 23:32 UTC
    Excellent advice. Using flag variables is a bad habit I've developed over the last 8 years. Thanks very much for your helpful response, and thanks everybody else. I feel like such an idiot, but at least I'm smarter than I was before.
      Nope, an idiot would have asked "My Perl code doesn't work. Why?" (without anything else, such as code, examples, assumptions, et cetera).