Use a module... My favorite is HTML::Template, but there are plenty.
See http://search.cpan.org/~samtregar/HTML-Template-2.6/Template.pm
First Name:
Last Name:
#!/usr/bin/perl -w
use HTML::Template;
# open the html template
my $template = HTML::Template->new(filename => 'mytemplate.tmpl'
NAME
beginners-faq - FAQ for the beginners-cgi mailing list
1 - Administriva
1.1 - I'm not subscribed - how do I subscribe?
Send mail to <[EMAIL PROTECTED]>
You can also specify your subscription email address by sending email to
(assuming [EMAIL PROTECTED] is your email addres
Wiggins d'Anconia wrote:
Phillip Bruce wrote:
Wiggins d'Anconia wrote:
Thanks for the suggestions. Now I get totally different error. I ran
this on the command line and get following:
% ./survey.cgi
Content-type: text/html
Substitution replacement not terminated at ./survey.cgi line 37.
Her
Phillip Bruce wrote:
Wiggins d'Anconia wrote:
Well,
I'm using perl 5.8 and I'm now getting these error messages.
The errors you are getting now are because of the stricture. You have
to declare the scope of all of your variables (among other things).
perldoc strict
For more info W
Wiggins d'Anconia wrote:
In the following line you need a 'my' to give the variable scope
$mail = Mail::Internet->new(Header => $head,
Body => [$body],
Modify => 1);
Ok, I did that and now I'm getting this error
./survey.cgi
Content-