![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
threads and leaking scalarsby deliria (Chaplain) |
on Aug 03, 2003 at 23:24 UTC ( #280529=perlquestion: print w/replies, xml ) | Need Help?? |
deliria has asked for the wisdom of the Perl Monks concerning the following question: I started playing around with threads in perl5.8 and came across something I can't seem to get my head around. In the following piece of code I call 'new My_mod( \%config )'. I figured this would work, however Perl complains about 1 leaked scalar for each of the threads started. If I don't pass it an argument it does not leak scalars. I figured 5.8.1 might do better, so i compiled perl-5.8.1rc4 and had it run the example, but the problem remained. It's fairly easy to work around this problem, but i'd like to understand why it leaks scalars, or where i'm doing something wrong.
Back to
Seekers of Perl Wisdom
|
|