I have the following lines in my code:
When I run the program, I keep getting "syntax error near 'print' line 92". I have used the same format in other codes but this is the only one that gives this error. How can I solve this? I changed $q so that it is now my $q = CGI->new; Is there something wrong with my format?
Code:
my $last_time = 0;
print $q->header("text/html\n\n"), #This is line 92
$q->start_html(-title=>"Data Report"),
"This is the report for~~<br>";
When I run the program, I keep getting "syntax error near 'print' line 92". I have used the same format in other codes but this is the only one that gives this error. How can I solve this? I changed $q so that it is now my $q = CGI->new; Is there something wrong with my format?