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'
I use windows/activestate, so I use the ppm to install modules.
There is the cpan module for other distros which works similarly.
http://www.perl.com/pub/a/2002/03/26/cpanplus.html
>From the documentation, the command should look something like
> cpanp
cpan> i cgi::formbuilder
( I'm just guessin
This will create the form for you, including client side javascript for
validation. It will also do the server side validation. It will set
itself as the submit, and return a confirmation screen. It's all of 18
lines, that's less than it would take to write the HTML form itself.
Look at
http://sear
A cgi hello world script must have the headers in it.
For example,
#!/usr/bin/perl
print "Content-Type: Text/HTML\n\n";
print "Hello World";
-Original Message-
From: Sara [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 5:37 AM
To: beginperl
Subject: Perl/Linux problem.
I
In unix there is a program called tee.
It works something like
program.pl | tee log.file
you just have program.pl write to STDOUT
alternatively, in your program, you could just do
my $log = "log.file";
open( LOG, ">>log.file" );
print "THING\n";
print LOG "THING\n";
close LOG;
( basically pri
I've had some luck with perl2exe in the past. If I remember correctly,
you also have to deliver a couple of .dll's with the executable. Can you
turn the app into a web app? You might have more luck with that.
http://www.indigostar.com/perl2exe.htm
-Original Message-
From: Sven Bentlage [ma