There's more than one way to do things | |
PerlMonks |
Re^3: Difference between exists and definedby thanos1983 (Parson) |
on Apr 16, 2019 at 10:52 UTC ( [id://1232640]=note: print w/replies, xml ) | Need Help?? |
Hello Veltro, You are right my example was not clear if I do not add the following part:
The reason that this is happening is explained in the documentation exists:
So if you check the array element with exists and you have manually defined undef to the element then exists will return True. :) Thanks for pointing it out. Hopefully it will avoid confusion for future reference. :) BR / Thanos
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|