At 04:21 PM 8/8/01 -0600, Thomas Burkhardt wrote:
>Perl Gurus:

You might want the gurus on [EMAIL PROTECTED]  Suggest you follow up 
there.

>Greetings!
>
>1) What bare bones code do I need in my perl/cgi script to produce an
>HTML page?  I want to run this script merely to produce a page.
>Eventually, I will be
>querying a dB and producing links, but what are the basics?  My serveral
>basic books on Perl and CGI do not seem to specifically address this.

All depends on what you need to go in that page.  Already have a page 
stored somewhere and just want to blat it out?  Copy it to STDOUT.  Want to 
do parameter substitution on a template?  There are a zillion template 
modules; try "Writing CGI Applications with Perl" -- Kevin Meltzer, Brent 
Michalski (Addison-Wesley) for more info.  Want to do more complex stuff 
involving HTML fragments in a database, maybe some XML?  Some of those 
templating modules can handle this.

>2) Technically, is the above not really CGI?  I need to direct the
>output.html to a web server (to use SSIs), but I don't think I even need
>*.cgi (on a web
>server)and/or CGI.pm.  Is such really just a Perl script?

Yes, and if the output is going through a web server, then it almost 
certainly must be a CGI program otherwise how does the web server know when 
to invoke it?  But the definition of 'CGI program' actually requires very 
little.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to