Now exists $dow[5] returns false. I expected exists($dow[5]) to be true and defined($dow[5]) to be false. Also dumping the array (Dumper(\@dow)) shows [undef, undef, undef, undef, undef, "Sat"]. If I do $dow[5] = undef; and then do exists($dow[5]) returns true. How does exists work for arrays - do I have to explicitly initialize an element before it "sees" it? I am on perl 5.10.0 on Snow Leopard. Thanks, Deepak@dow = (); $dow[6] = "Sat";
In reply to Exists and arrays by deepakg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |