4 ms·
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 n
by kqr 1y ago
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.