There's more than one way to do things | |
PerlMonks |
Re: Perl and common subexpressionsby dws (Chancellor) |
on Dec 23, 2004 at 07:16 UTC ( [id://417015]=note: print w/replies, xml ) | Need Help?? |
Unfortunately, unlike C, Perl has to contend with something a little crazier: Tied hashes and arrays. And function calls. In any of y, z, or a can be methods, with or without side-effects, and with no guarantee that they'll return the same thing on subsequent calls. In the face of such flexibility, static analysis optimizations are non-starters.
In Section
Meditations
|
|