SPUG: cgi script template

jeff jeff at planetoid.net
Mon Jun 26 16:51:11 CDT 2000


is the following a good template for develping perl/cgi/db applications?

#!/usr/bin/perl

use stuff/config

eval {
    connect to db
    do some stuff
};

if ($@)
    error reporting
}

exit 0;

or does defining a sig die handler improve readability or exception
handling...

jeff at planetoid.net



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 For Subscriptions, Email to majordomo at pm.org:  ACTION  spug-list  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email address





More information about the spug-list mailing list