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
In reply to Re: Perl header to serve up a .HTML file from a CGI directory
by davorg
in thread Perl header to serve up a .HTML file from a CGI directory
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |