General Perl/Web questions
- From: sgross@xxxxxxxxx (Steve Gross)
- Date: Fri, 28 Apr 2006 09:40:17 -0400
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
- Follow-Ups:
- Re: General Perl/Web questions
- From: JupiterHost.Net
- Re: General Perl/Web questions
- Prev by Date: Re: Getopts problem
- Next by Date: Re: Getopts problem
- Previous by thread: Perl Substitution
- Next by thread: Re: General Perl/Web questions
- Index(es):
Relevant Pages
|
|