in reply to Printing Hash of Arrays
you can write:for ($i=1 ;$i<=$number ; $i++) { ... }
which executes faster, and tends to result in less chance of fencepost errors. And of course I would never write a loop like that, I would instead do:foreach $i (1..$count) { ... }
which plays better with strict. (Which it doesn't look like you are using, but is a very helpful habit to get into.)foreach my $i (1..$count) { ... }
|
|---|