RE: Best Token Char For Template

2003-10-11 Thread Jonathan E. Hogue
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'

RE: Form creation and parsing

2003-10-10 Thread Jonathan E. Hogue
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

RE: Form creation and parsing

2003-10-09 Thread Jonathan E. Hogue
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

RE: Perl/Linux problem.

2003-09-11 Thread Jonathan E. Hogue
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

RE: create log as well as print on screen

2003-08-20 Thread Jonathan E. Hogue
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

RE: perl script as binary

2003-08-14 Thread Jonathan E. Hogue
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