in reply to A (kinda) Circular Cache

You might also look at Tie::Cache::LRU.

-- Randal L. Schwartz, Perl hacker