Keep It Simple, Stupid | |
PerlMonks |
Re: Difference between exists and definedby LanX (Saint) |
on Apr 16, 2019 at 10:48 UTC ( [id://1232639]=note: print w/replies, xml ) | Need Help?? |
The internal implementation of arrays is very space efficient. All used slots point to values (scalar, constant ...), but unused slots don't demand much space or even no space.
There are only little use cases where using exists on arrays can be of help. You don't want to meddle with such internals.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|