Take a look at HTML::Template (or one of the many other template modules)
on CPAN;
Thanks !!
I just got it fixed (2 min ago) using the following structure :
#---
&print_html($file_adapt);
sub print_html {
open(FF, "< @_");
while($line=) {
$line =~ s/(\$[\w\]\[\$]
Hi,
I have a CGI-script that needs to print an html-page containing variables
dependent on the choise you make.
Right now I do this using :
#!/opt/per/bin/perl
if ($submit) {
open(FH, "< $htmlfile");
my @contents=;
close(FH);
print "Content type text/html; \n\n";
print "Contents";
This does pri