Caching & Memoization with state variables
(This is a cross post from B.P.O ).  Chapter 3 of [Higher Order...
Tags: perl, caching, memoization