|Think about Loose Coupling|
Re: How do you wanna die() ?by magnus (Pilgrim)
|on Mar 06, 2001 at 20:11 UTC||Need Help??|
for me it depends on who's gonna see it... if the person reading it is not really gonna have any idea of what the error means and ask someone else for help anyway, i use:
die "Whoops! Something really strange just occured: $!";
die "Uh-oh... Something went *SNAP* inside the computer: $!";
however, when i know that someone who will have an idea of what's up will be reading, i use:
die "After the pleading and squealing, this script died like the dog is was because $!"