Ronald J Kimball wrote:
>my @indices = (0) x $maxlen;
>
>
I have no idea why, because it's not more efficent or anything, but I
always find myself writing:
my @indices = map { 0 } 1..$maxlen;
The nice thing about it is that I tend to think of map even when I want
something very slightly different from a simple list on n items, and
that keeps me from writing wasteful foreach loops.
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm