No such thing as a small change | |
PerlMonks |
Re: Difference between exists and definedby thanos1983 (Parson) |
on Apr 16, 2019 at 09:37 UTC ( [id://1232633]=note: print w/replies, xml ) | Need Help?? |
Hello milanpwc, From the documentation exists:
So why you are expecting to be true on not defined elements (not existing elements)? Is it more clear or still confusing? Also take notice from documentation:
Update: I think I understand why you are confused. You are not assigning to all elements in the array the value 2. Only to one element. See below:
BR / Thanos
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|