Just another Perl shrine | |
PerlMonks |
Re: Testing for definition of referencesby jsprat (Curate) |
on Jun 26, 2003 at 18:10 UTC ( [id://269342]=note: print w/replies, xml ) | Need Help?? |
Straight from the horse's mouth (perldoc -f defined):
Use of "defined" on aggregates (hashes and arrays) is deprecated. It used to report whether memory for that aggregate has ever been allocated. This behavior may disappear in future versions of Perl. You should instead use a simple test for size HTH...
In Section
Seekers of Perl Wisdom
|
|