in reply to Parallel::ForkManager Memory issue

What is this line of code doing? my $var = $key->attribute;

I ask, because it looks like it is calling a method attribute on an object $key; but that is impossible.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Parallel::ForkManager Memory issue
by hotel (Beadle) on Mar 17, 2013 at 12:13 UTC

    Hi,

    I think it is possible when the hash H is declared as

    tie my %H, 'Tie::RefHash';

    since you are then able store objects as hash keys

      H is declared as tie my %H, 'Tie::RefHash';

      Ah! No wonder you are running out of memory.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.