Commented lines are being shown compilation errors

Commented lines are being shown compilation errors

am 24.12.2007 11:37:25 von Ramakrishnaprasad.a

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.

Re: Commented lines are being shown compilation errors

am 24.12.2007 11:38:25 von Ramakrishnaprasad.a

On Dec 24, 3:37=A0pm, "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.

Re: Commented lines are being shown compilation errors

am 24.12.2007 12:07:47 von Claudio Calvelli

On 2007-12-24, Ramakrishnaprasad.a@gmail.com wrote:
> On Dec 24, 3:37 pm, "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.

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.

Re: Commented lines are being shown compilation errors

am 24.12.2007 12:46:51 von Ramakrishnaprasad.a

On Dec 24, 4:07=A0pm, Claudio Calvelli
wrote:
> On 2007-12-24, Ramakrishnaprasa...@gmail.com wrote:
> > On Dec 24, 3:37=A0pm, "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.
>
> 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 "/\n"; #line 93
where $cslength=3D'3'; in the previous line.#line 92
#print "\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,

Re: Commented lines are being shown compilation errors

am 24.12.2007 12:51:46 von Claudio Calvelli

On 2007-12-24, Ramakrishnaprasad.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.

Re: Commented lines are being shown compilation errors

am 24.12.2007 12:59:31 von Ramakrishnaprasad.a

On Dec 24, 4:51=A0pm, Claudio Calvelli
wrote:
> On 2007-12-24, Ramakrishnaprasa...@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=3D/""
> > (Missing operator before "colspan=3D/"?)
>
> 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