in reply to Re^2: The trouble with Perl Idiom
in thread The trouble with Perl Idiom
That is an implementation detail. :-)
Remember, code is written primarily for programmers to read and only incidentally for a machine to execute. Did you profile this and found it to be a problem?
NB: I quarreled with the thought of adding a note to the effect that this construct loops twice on my previous node, but decided against it. The typical data set in this function would consist of one element, or of less than 10 elements in most other cases. Musing about its efficiency therefore seems like a rather pointless excercise.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: The trouble with Perl Idiom
by demerphq (Chancellor) on Aug 30, 2004 at 07:00 UTC | |
by hv (Prior) on Aug 30, 2004 at 11:06 UTC | |
by demerphq (Chancellor) on Aug 30, 2004 at 11:21 UTC |