Dear monkists,
I note here that the concept of an automated counter variable in looping structures have been discussed before.
My question is why does this output the current loop count ?
for (1..10){
print
}
could this not be subverted as a loop counter ? tia.
update: slapping forehead: thanks....
In reply to perl loop counter by cutlass2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |