Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: Getting for() to accept a tied array in one statementby ikegami (Patriarch) |
on Apr 19, 2019 at 08:39 UTC ( [id://1232796]=note: print w/replies, xml ) | Need Help?? |
That's correct. for (@a) iterates over the indexes as if you had done for (0..$#a). This differs from for ((), @a), which retrieves the contents of @a up front.
In Section
Seekers of Perl Wisdom
|
|