in reply to HoA create from array using map, more efficient?
Fyi, this:
($k,$v) = (split /\s+/,$_)[2,4];
is equivalent to:
my ($snap, $rotation) = (split)[2,4];
Also, use my() variables rather than global variables.
...which means you didn't use strict and warnings, which you should be doing too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HoA create from array using map, more efficient?
by ikegami (Patriarch) on Jun 18, 2011 at 20:23 UTC | |
|
Re^2: HoA create from array using map, more efficient?
by hsinclai (Deacon) on Jun 18, 2011 at 20:22 UTC | |
by ikegami (Patriarch) on Jun 18, 2011 at 20:26 UTC |