Note that the change to make exists work on array elements was widely disliked and that I consider it, quite simply, a mistake and nothing more. Unfortunately, this mistake was made by Larry and he makes the rules. This is one of his rare bad decisions (nobody's perfect).
Please don't use exists on array elements as the most likely result will be confusion and bugs. exists makes sense on hash elements because it distinguishes the case of the key being present with a value of undef from the case of the key not being present. For arrays, the distinction is much more subtle and is something that should never be worried about (I'd go into more details on it but I follow my own advice and don't worry about it).
- tyeIn reply to (tye)Re: exists and defined functions
by tye
in thread exists and defined functions
by arrow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |