Y
Hacker News
new
|
ask
|
show
|
jobs
by
kqr
259 days 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.