Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am constructing an HTML frrm a 'here' document. After I create the HTML I'd like to execute it.73 my $out_file = "/var/www/html/shhabcam/LOGS/user_$assignment.html"; 374 375 if (-f $out_file) { 376 chmod 777, $out_file; 377 unlink $out_file or die "can't delete $out_file....$!"; 378 } 379 380 open (my $OUT, '>',"$out_file") or die "can't open $out_file....$! +"; 381 print $OUT $message;^M 382 close ($OUT); 383 384 # print $LOG "9\n"; 385 386 close ($LOG) if ($debug); 387 388 389 print "Content-type: text/html\n\n"; 390 print "<html><body><h3>$out_file created....</h3></body></html>\n" +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how can I execute an html file from Perl
by marto (Cardinal) on Oct 27, 2017 at 13:25 UTC | |
by Anonymous Monk on Oct 27, 2017 at 23:04 UTC | |
|
Re: how can I execute an html file from Perl
by Discipulus (Canon) on Oct 27, 2017 at 16:12 UTC | |
|
Re: how can I execute an html file from Perl
by hippo (Archbishop) on Oct 27, 2017 at 14:57 UTC | |
by Anonymous Monk on Oct 27, 2017 at 15:58 UTC | |
by hippo (Archbishop) on Oct 27, 2017 at 16:18 UTC | |
by marto (Cardinal) on Oct 27, 2017 at 18:05 UTC | |
by poj (Abbot) on Oct 27, 2017 at 16:49 UTC | |
by Anonymous Monk on Oct 30, 2017 at 12:47 UTC |