Gossamer Forum
Home : Products : Gossamer Links : Discussions :

"die" in plug-in code

Quote Reply
"die" in plug-in code
Doesn't work.....

That was what the bug I was chasing was:

Code:
open (OUTFILE,">>$out_file") or die "could not open $filename ($cfg->{image_path}): $!";
Does _NOT_ stop execution, probably because it's already wrapped in an eval.

What was happening is my program was hitting a fatal condition, and just returning, with half the values set. My poor curly little tail is all chewed up from being chased for so long!

The only way I see around that is to create my own error handler.... unless you have a way built in.

It has to generate a 'fatal' stop, and return a message as to why, so it would have to be a multiple-statement process which doesn't lend itself to the right side of a logical 'or' or 'and'.



PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Subject Author Views Date
Thread "die" in plug-in code pugdog 2357 Jan 26, 2001, 11:19 PM
Post Re: "die" in plug-in code
pugdog 2278 Jan 27, 2001, 2:02 PM
Thread Re: "die" in plug-in code
Alex 2270 Jan 29, 2001, 6:20 PM
Post Re: "die" in plug-in code
pugdog 2291 Jan 29, 2001, 6:21 PM