perl -le ' $a[10] = 1; if (exists $a[2]) { print "how did that get there?\n"; } else { print "a[2] does not exist\n"; } ' a[2] does not exist
In reply to Re: Erroneous defined detection of array elements
by keszler
in thread Erroneous defined detection of array elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |