Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Error messages point to wrong line number in if-elsif constructby Sandy (Curate) |
on Dec 21, 2004 at 22:02 UTC ( [id://416633]=perlquestion: print w/replies, xml ) | Need Help?? |
Sandy has asked for the wisdom of the Perl Monks concerning the following question:
This really isn't a question, and I'm not sure if it is the correct place to post, but nonetheless...
While looking at node Resetting variables I was mislead by the line number of the error message. It appears that when there is an if(){...}elsif(){...} construct that contains an error with the elsif part, the line number points to the line of the if statement. Examples are better than words: Result ... error is at line 11 ...
But Result ... error is at line 7 ...
Very confusing. I haven't seen any documentation on this behaviour. Sandy
Back to
Seekers of Perl Wisdom
|
|