> > From: Felix Geerinckx[SMTP:[EMAIL PROTECTED]] > > exit the script to prevent it from having to run through the rest > of it needlessly. do I need to explicitly disconnect before exiting >in those instances or it it OK to just exit? You can always put the >following in your script: > > END { > $dbh->disconnect() if $dbh; > } > > which will be executed even if your program 'die's.
This is another piece of code that I will have to add to my template along with #!Where ever bin is use warnings; use strict; sub error{ Error Stuff; } END { End Stuff; } =cut Documentation here. Does anyone have any other things that would be good practice in most scripts. Harry __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]