in reply to Running out of Memory

I think that you could benefit from using AutoLoader or SelfLoader. Also, this has some tips on optimizing perl.