in reply to Re: Re^3: Arrays manipulation (no $i either)
in thread Arrays manipulation
I'm not sure, but pretty certain that your version is more efficient, and you're also right that I traded one variable for another.
The reason I prefer the version I posted is another, though: it has one less side effect. (I tried to do without the push too, but no practicable solution presented itself.) The fewer side effects, the more decoupled things become - f.ex, try changing your version such that it inserts an element from a different data source into a column determined by one of the fields of $row. That's a trivial change for the code I posted.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^5: Arrays manipulation (no $i either)
by sauoq (Abbot) on May 03, 2003 at 01:47 UTC | |
by Aristotle (Chancellor) on May 03, 2003 at 01:59 UTC |