Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to get Blessed variables of a Class in the Thread Function in Perl?by NetWallah (Canon) |
on Jan 10, 2013 at 06:47 UTC ( [id://1012599]=note: print w/replies, xml ) | Need Help?? |
That is because you neglected to pass $self as a parameter to the threaded call to threadFunc. Try:
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
In Section
Seekers of Perl Wisdom
|
|