http://www.perlmonks.org?node_id=677650


in reply to memory consumption skyhigh...

Have you looked at Data::Reuse