|
|
| P is for Practical | |
| PerlMonks |
Re: Yet Another Unitialized Value Questionby pijll (Beadle) |
| on Sep 22, 2003 at 18:11 UTC ( [id://293311]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The line numbers reported by perl do not always indicate the exact place of the error/warning. An error in a multi-line statement is always reported as if it was on the first line of the statement.
In particular, if there is an error in an elsif condition, it is reported with the line number of the corresponding if.
Your if ($lock) should not generate the warning you got, so take a good look at your elsif.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||