matthias dot schniedermeyer
To get a perl-like die you can/should append this snipped
. " File: " . __FILE__ . " on line: " . __LINE__
die ("Error" . " File: " . __FILE__ . " on line: " . __LINE__);
Perhaps the Coldfusion query below can be answered as follows:
(From the "User Contributed Notes" for the PHP construct "exit")
nospam at mydomain dot com
Using return instead of exit is to prefer when you want the script that you have included inside another script to die but continue to execute the main script.
die doesn't prevent destructors from being run, so the script doesn't exit immediately, it still goes through cleanup routines.