Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Confusing warning with if/elsif/else

by demerphq (Chancellor)
on Dec 08, 2005 at 10:27 UTC ( [id://515194]=note: print w/replies, xml ) Need Help??


in reply to Confusing warning with if/elsif/else

This is a known issue that I beleive is being or has been or will be fixed for the next major release. But the rule the thumb for warnings and errors is to look at the line and then the general area. Perl often emits a confusing mishmash of warnings and errors which will all resolve once you find the correct one and fix it.

---
$world=~s/war/peace/g

Replies are listed 'Best First'.
Re^2: Confusing warning with if/elsif/else
by robin (Chaplain) on Dec 09, 2005 at 09:58 UTC
    Yes. This is a very old and popular bug, which gets reported all the time.

    Although it has been talked about on p5p, it hasn't been fixed. It’s actually a fundamental problem with the way that perl keeps track of the line number, and the proposed fix is to store the line number in every single op.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://515194]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found