in reply to Re: Foreach Loops
in thread Foreach Loops
$ perl -e '@a = (1, 2, 3); for (0..@a) { print "A$_: $a[$_]\n" }' A0: 1 A1: 2 A2: 3 A3:
-sam
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Foreach Loops
by sh1tn (Priest) on Mar 15, 2005 at 20:00 UTC | |
by samtregar (Abbot) on Mar 15, 2005 at 20:44 UTC | |
by sh1tn (Priest) on Mar 15, 2005 at 20:54 UTC |