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


in reply to Memory leaks and reference counting within Perl.

Hey DK.

Total shot in the dark here, but...perhaps Data::Dumper might be of some help?

UPDATE: with total credit to castaway, here's this answer

'using data::dumper or print after your loop, you would have noticed that $hash_ref is empty'

  • Comment on Re: Memory leaks and reference counting within Perl.

Replies are listed 'Best First'.
Re^2: Memory leaks and reference counting within Perl.
by davido (Cardinal) on Jan 06, 2005 at 08:29 UTC

    Total shot in the dark here, but...perhaps Data::Dumper might be of some help?

    Not unless you have some need to dump the datastructure. Doesn't have much to do with the question of lexical scoping, reference counts, and garbage collection though.


    Dave

      Well there is the point that using a module such as Data::Dumper or Data::Dump::Streamer (with the former in Purity() mode) you would at least readily notice any cyclic references in the data structure.

      ---
      demerphq