http://qs1969.pair.com?node_id=350040


in reply to Re: Re:x2 if (open(FH, $path)) { ? (I got the resource acquisition blues)
in thread if (open(FH, $path)) { ?

If I add an if (open(FH, $path) or die "$!") { doesn't that kill the application?

I still want it to print out the rest of the webpage.

Update2: Nevermind.

Replies are listed 'Best First'.
Re: Re: Re: Re:x2 if (open(FH, $path)) { ? (I got the resource acquisition blues)
by ysth (Canon) on May 03, 2004 at 16:40 UTC
    It kills more than the if statement; if open is failing but your application isn't dying, you must be in an eval or something.
      Your right, I was printing out part of a webpage before the or die and it doesn't print any errors. Just ends the application.