Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: askName.pl
Вот мой код ...
#!/usr/bin/perl
#askName.plx
#use 5.006;
use strict;
use warnings;
use CGI::Carp qw(fatalsToBrowser);
use CGI;
print "Content-type: text/html\n\n";
my $cgi = new CGI;
print"<html><head><title> Forms Intro! </title></head>"; print "<h1> Welcome, ",$cgi ->
param('first'), " " , $cgi -> param('last'), "</h1>"; print"</html>";
Я тоже пытался отформатировать это
print $cgi -> header();
print $cgi -> start_html("Welcome");
print "<h1> Welcome, ",cgi -> param('first'), " " , $cgi -> param('last');, "</h1>";
print $cgi -> end_html();
но это не сработало: /