![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: hash undef?by zer (Deacon) |
on Nov 15, 2007 at 14:23 UTC ( #650981=note: print w/replies, xml ) | Need Help?? |
if (exists $time{$recordNumber})
This will tell you if it actually exists rather than whether it holds an undef or not. Defined will return false if the value contains an undef or if it just doesnt exist.
Update: Thank you Mr. Anony. I had said that Defined returns undef, which isnt accurate and even contradicts the use of the function.
In Section
Seekers of Perl Wisdom
|
|