The logic of this, determined by Larry at the Dawn of Time (Perl version 1.0), is that the elements of arrays (and also of hashes – associative arrays) are always and only scalars.
Interestingly, this logic (which sounds perfectly sane to me) has been abandoned in Perl 6. I don't understand why.
Time flies when you don't know what you're doing
In reply to Re^4: scoping problems
by FloydATC
in thread scoping problems
by naturalsciences
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |