Home > Archive > PERL Modules > December 2007 > Commented lines are being shown compilation errors
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Commented lines are being shown compilation errors
|
|
| Ramakrishnaprasad.a@gmail.com 2007-12-24, 7:59 am |
| I have a perl script.I have a print statement which I have commented
out.But I am seeing that the commented line is being shown in the
compilation error.I am new to perl programming.Any help is
appreciated.Thanks in advance.
| |
| Ramakrishnaprasad.a@gmail.com 2007-12-24, 7:59 am |
| On Dec 24, 3:37=A0pm, "Ramakrishnaprasa...@gmail.com"
<Ramakrishnaprasa...@gmail.com> wrote:
> I have a perl script.I have a print statement which I have commented
> out.But I am seeing that the commented line is being shown in the
> compilation error.I am new to perl programming.Any help is
> appreciated.Thanks in advance.
I have used # to comment out the line.This is additional information.
| |
| Claudio Calvelli 2007-12-24, 7:59 am |
| On 2007-12-24, Ramakrishnapra .a@gmail.com wrote:
> On Dec 24, 3:37_pm, "Ramakrishnaprasa...@gmail.com"
><Ramakrishnaprasa...@gmail.com> wrote:
>
> I have used # to comment out the line.This is additional information.
That's a bit vague at best. Could you post the offending line with a bit
of context (the few lines before and after).
Are you sure the error is reported on the commented out line, and not in
the one before or after?
C
--
The address in the "From" header won't work. Email to "usenet" at "intercal" dot
"dyn-o-saur" dot "com" may or may not reach me, depending on how far it manages
to go through the spam filter, and other conditions which I won't disclose.
| |
| Ramakrishnaprasad.a@gmail.com 2007-12-24, 7:59 am |
| On Dec 24, 4:07=A0pm, Claudio Calvelli
<qwertyu...@asdfghjkl.zxcvbnm.not> wrote:
> On 2007-12-24, Ramakrishnaprasa...@gmail.com wrote:
>
>
> That's a bit vague at best. Could you post the offending line with a bit
> of context (the few lines before and after).
>
> Are you sure the error is reported on the commented out line, and not in
> the one before or after?
>
> C
>
> --
> The address in the "From" header won't work. Email to "usenet" at "interca=
l" dot
> "dyn-o-saur" dot "com" may or may not reach me, depending on how far it ma=
nages
> to go through the spam filter, and other conditions which I won't disclose=
..
Hi,
Please check the following lines with the compilation errors:
#print "<td colspan=3D$cslength></td>/\n"; #line 93
where $cslength=3D'3'; in the previous line.#line 92
#print "<td id=3D"tdhl" colspan=3D"3" align=3D"centre"></td>\n"; #line 94
Compilation errors:
$perl myperl.pl
String found where operator expected at line 94 , near "#printf""
(Might be a rinaway multi-line "" string starting on line 93
(Missing semicolon on previous line?)
String found where operator expected at line near "/"tdhl/"
colspan=3D/""
(Missing operator before "colspan=3D/"?)
Thank you for your interest in my query.
Thanks & regards,
| |
| Claudio Calvelli 2007-12-24, 7:59 am |
| On 2007-12-24, Ramakrishnapra .a@gmail.com wrote:
> Compilation errors:
> $perl myperl.pl
> String found where operator expected at line 94 , near "#printf""
> (Might be a rinaway multi-line "" string starting on line 93
> (Missing semicolon on previous line?)
> String found where operator expected at line near "/"tdhl/"
> colspan=/""
> (Missing operator before "colspan=/"?)
That's likely to be a missing quote somewhere before line 93 - so the
line starting with #printf will be interpreted as inside the quote string,
the quote after the printf would be interpreted as closing quote, and
therefore give a syntax error.
You could search backwards for a double quote character starting from
line 93 - that will probably find the real error.
C
--
The address in the "From" header won't work. Email to "usenet" at "intercal" dot
"dyn-o-saur" dot "com" may or may not reach me, depending on how far it manages
to go through the spam filter, and other conditions which I won't disclose.
| |
| Ramakrishnaprasad.a@gmail.com 2007-12-24, 7:59 am |
| On Dec 24, 4:51=A0pm, Claudio Calvelli
<qwertyu...@asdfghjkl.zxcvbnm.not> wrote:
> On 2007-12-24, Ramakrishnaprasa...@gmail.com wrote:
>
> That's likely to be a missing quote somewhere before line 93 - so the
> line starting with #printf will be interpreted as inside the quote string,=
> the quote after the printf would be interpreted as closing quote, and
> therefore give a syntax error.
>
> You could search backwards for a double quote character starting from
> line 93 - that will probably find the real error.
>
> C
>
> --
> The address in the "From" header won't work. Email to "usenet" at "interca=
l" dot
> "dyn-o-saur" dot "com" may or may not reach me, depending on how far it ma=
nages
> to go through the spam filter, and other conditions which I won't disclose=
..
Hi,
Thanks!I searched the file and found a missing " somewhere in the
before line and it is working!!!
Thanks a lot.
Thanks & regards
|
|
|
|
|