in reply to how can I execute an html file from Perl

After I create the HTML I'd like to execute it.

HTML isn't an executable format - it's markup (that's what the M stands for). I guess you mean print it? In which case, make your line 390 this:

print $message;

Replies are listed 'Best First'.
Re^2: how can I execute an html file from Perl
by Anonymous Monk on Oct 27, 2017 at 15:58 UTC

    I am not stating my question adequately. I have constructed an HTML that consists of a number of inputs. Right now I am asking the user to enter the stated URL (in the browser) to display/execute this file. I would like to do this programactically.

      I think what you are now saying is that, given an absolute path on the filesystem, convert that to a URL and print it. In which case something like this (untested) should do:

      (my $url = $out_file) =~ s#$ENV{DOCUMENT_ROOT}#http://$ENV{SERVER_NAME +}#; print "Go to $url now for prizes!\n";

      Why not use a link ?

      print "Content-Type: text/html\n\n"; print qq!<html> <body><h3>$out_file created.... <a href="/shhabcam/LOGS/user_$assignment.html">here</a></h3> </body></html>\n!;
      poj
        of course! Works great....thanks!