in reply to Perl header to serve up a .HTML file from a CGI directory
No need to use all that HTML::Template nonsense :) And you're loading stuff you don't need from CGI.pm.
#!Perl -w use strict; use CGI qw(header); print header; print while <DATA>; __DATA__
But anyway, you probably want to arrange your web site so you don't need to serve static content from the cgi-bin directory.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl header to serve up a .HTML file from a CGI directory
by ambrus (Abbot) on Mar 18, 2007 at 15:36 UTC | |
|
Re^2: Perl header to serve up a .HTML file from a CGI directory
by GrandFather (Saint) on Mar 13, 2007 at 10:17 UTC | |
by davorg (Chancellor) on Mar 13, 2007 at 10:19 UTC |