Second, how often is this loop going to execute? If this loop happens 10 times per execution of your program, you probably wasted more time typing all those assignments than you saved by using arrayref. If the loop executes 10_000_000 then it is probably worth your while to benchmark both solutions, and judge for yourself which is really faster.
In reply to Re: Better way of accessing fields
by matija
in thread Better way of accessing fields
by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |