programming-examples/perl/Array/Using array length in for loop.pl
2019-11-15 12:59:38 +01:00

4 lines
131 B
Raku

@array = ("one", "two", "three");
for($loop_index = 0; $loop_index <= $#array; $loop_index++) {
print $array[$loop_index];
}