in reply to calling a html file from a perl script
my $file; if(case1) { $file = 'this.html'; } elsif(case2) { $file = 'that.html'; } else { $file = 'error.html'; } print "Content-Type: text/html\n\n"; { open(HTML, $file) or die $!; local $/; # this will make <HTML> just return the # whole file instead of line by line print <HTML>; close HTML; }
- Ant
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: calling a html file from a perl script
by I0 (Priest) on Jul 21, 2001 at 09:32 UTC | |
by suaveant (Parson) on Jul 23, 2001 at 17:34 UTC | |
by I0 (Priest) on Jul 23, 2001 at 23:45 UTC | |
by suaveant (Parson) on Jul 24, 2001 at 00:13 UTC | |
by I0 (Priest) on Jul 24, 2001 at 03:57 UTC |