ITmajor has asked for the wisdom of the Perl Monks concerning the following question:
When I run the program, I keep getting "syntax error near 'print'". I have used the same format in other codes but this is the only one that gives this error. How can I solve this?print $q->header("text/html\n\n"), $q->start_html(-title=>"Data Report"), "This is the report for~~<br>";
I'm baffled. This is the only code I'm having trouble with.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>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax error near Print
by ccn (Vicar) on Nov 21, 2008 at 20:47 UTC | |
|
Re: Syntax error near Print
by ikegami (Patriarch) on Nov 21, 2008 at 20:52 UTC | |
|
Re: Syntax error near Print
by TimToady (Parson) on Nov 21, 2008 at 22:13 UTC | |
by tye (Sage) on Nov 22, 2008 at 00:08 UTC | |
by roboticus (Chancellor) on Nov 22, 2008 at 13:17 UTC | |
|
Re: Syntax error near Print
by graff (Chancellor) on Nov 22, 2008 at 18:58 UTC | |
|
Re: Syntax error near Print
by jeffa (Bishop) on Nov 21, 2008 at 20:46 UTC | |
|
Re: Syntax error near Print
by Anonymous Monk on Nov 21, 2008 at 20:45 UTC | |
|
Re: Syntax error near Print
by mikelieman (Friar) on Nov 21, 2008 at 20:44 UTC | |
by ikegami (Patriarch) on Nov 21, 2008 at 20:47 UTC |