Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Confusing warning with if/elsif/else

by sanPerl (Friar)
on Dec 09, 2005 at 06:50 UTC ( [id://515468]=note: print w/replies, xml ) Need Help??


in reply to Re: Confusing warning with if/elsif/else
in thread Confusing warning with if/elsif/else

>>Yes, because the problem is with the 'if' statement (the elsif is part of the if statement).
>>
You are correct. Perl considers if..elsif..else as a complete if box. Hence it is pointing towards line number of 'if'.
I Didn't know this, this is a good tip for debuggers indeed

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-28 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found