chromatic/modern_perl_book — Issue #186: First code in book is c-style loop
Author: legrady
Created: 2011-11-01 16:20:48+00:00
State: open

It drives me crazy when tutorials show primitive constructs, and only get to the generally-used forms some time later. Especially in a book entitled "Modern Perl", the very first code shown the reader should not be a c-style loop.

At the least, please make our novice sufficiently idiomatic to use a range-based loop

for my $i ( 0..$count-1 ) {
...
}