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


in reply to Memory Management and Array references

It's not a memory leak. Perl is doing exactly what you tell it to do. When you're finished with $self->{files}, delete it.