|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: if (defined %hash) deprecatedby Athanasius (Vicar) |
| on Oct 15, 2012 at 16:08 UTC ( #999111=note: print w/ replies, xml ) | Need Help?? |
|
Yes. From defined: Use of defined on aggregates (hashes and arrays) is deprecated. It used to report whether memory for that aggregate had ever been allocated. This behavior may disappear in future versions of Perl. You should instead use a simple test for size: Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||