in reply to Re^3: Unexpected OO accessor benchmarks
in thread Unexpected OO accessor benchmarks
It's not preprocessing. You pass a hashref to cmpthese, the values of which are computed when that line of code is executed. Those values in this case are method invocations which are evaluated where they occur. It should be no more surprising than some_sub( $obj->method() ) calling that sub with the value returned from the method call.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Unexpected OO accessor benchmarks
by cLive ;-) (Prior) on Feb 10, 2007 at 00:55 UTC | |
by eric256 (Parson) on Feb 10, 2007 at 02:29 UTC |