akm2 has asked for the wisdom of the Perl Monks concerning the following question:
Edited by Corion: Changed title
I have an SysAdmin who is a real /\$$. He won't install ANY modules including Text::Template.
So, I developed the code below.
sub DisplayHTML() { $HTMLFileName = @_[0]; open(HTMLFNH,"<$HTMLFileName") || die "Cant open $HTMLFileName"; print "Content-type: text/html\n\n"; while ($HTMLLine=<HTMLFNH>) { $HTMLLine =~ s/(\$[\w\[\]{}']+)/$1/gee; #Allows printing of variable content. print "$HTMLLine"; } close(HTMLFNH); } return 1;
The problem is this: If you goto http://www.mscorp.org/cgi-bin/invo.pl you will see a page generated by this script. However, if you view the source of the page you will find the action tag for the form is blank. in the HTML document read my the script I have tried using $ENV'SCRIPT_URL'} variable to set the action tag. I have also setting a regular scalar and that doesn't work either.
Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seeking wisdom again...
by Masem (Monsignor) on Feb 28, 2001 at 02:20 UTC | |
by ZZamboni (Curate) on Feb 28, 2001 at 02:58 UTC | |
|
Re: Seeking wisdom again...
by Hot Pastrami (Monk) on Feb 28, 2001 at 02:24 UTC |