Problems? Is your data what you think it is? | |
PerlMonks |
Re: Yet Another Unitialized Value Questionby pijll (Beadle) |
on Sep 22, 2003 at 22:11 UTC ( [id://293311]=note: print w/replies, xml ) | Need Help?? |
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
|
|