I've just finished developing a small web site that uses Perl, CGI, DBI and HTML-Template. Typically, an HTML page calls a Perl script that does a database fetch, parses the data and then puts it on another web page using a template. I've noticed that most of my web pages look the same: Get Passed Parameters Open Database Build SQL Query Execute SQL Query Close Database Parse Data Open Template Pass Data to Template I repeat this pretty much for each HTML/Perl script. What I was wondering is can I somehow modularize a segment and then call it from each script? That way I would only need to write and debug it once. Something like subroutines but on a more global level. Thanks, Steve
______________________________________________________________ Steve Gross Tel: 212-284-6558 Director of Information Technology Cell: 917-575-4028 JESNA Fax: 212-284-6951 www.jesna.org