Common Perl memory/reference leak patterns?

后端 未结 4 701
天命终不由人
天命终不由人 2020-12-04 18:15

I\'m chasing a couple of potential memory leaks in a Perl code base and I\'d like to know about common pitfalls with regards to memory (mis-)management in Perl.

What

4条回答
  •  甜味超标
    2020-12-04 19:19

    Some modules from CPAN use circular references to do their work, e.g. HTML::TreeBuilder (which represents HTML tree). They will require you to run some destroying method/routine at the end. Just read the docs :)

提交回复
热议问题