5 ms·
You can write a lot of Perl code without ever needing array slices, but I agree on the last two questions.
by spudlyo 16y ago
You can write a lot of Perl code without ever needing array slices, but I agree on the last two questions.
- chromatic 16y agoYou don't have to know about array slices to answer that question effectively. You get a bonus for knowing about array slices, but the most important point is understanding the difference in context.
- Dove 16y agoOh, certainly. But it's hard to write a lot of perl code without accidentally writing an array slice. At least, I find it hard.
- Isamu 16y agoI like that as an answer: "the difference is you almost always want $items[$index] and rarely @items[$index] but somehow frequently type the latter"