in reply to Efficiency and Functions in loops
use Memoize; memoize('ReallyComplexFunction'); # everything else stays exactly the same.... [download]
-Blake