Perl uses reference counting for GC, and it\'s quite easy to make a circular reference by accident. I see that my program seems to be using more and more memory, and it will
Seems like the cpan module Devel::Cycle is what you are looking for. It requires making some changes to your code, but it should help you find your references without too many problems.