Comment by kqr
Perl is usually used with the first element being zero and the same loop would be
for (0..$#arr) {
foo(arr[$_])
}
Whatever you're feeling is not in starting at one.Perl is usually used with the first element being zero and the same loop would be
for (0..$#arr) {
foo(arr[$_])
}
Whatever you're feeling is not in starting at one.