I'm stuck with "Also within the Taglist class you have to use threads::shared's bless function so blessing propagates across all threads".
Using:
my $CurrentTagList : shared = TagList->new();initially returned an error but after changing the constructor for TagList to:
package TagList; sub new { my $class = shift; my @self : shared = @_; my _TagList = [], return bless \@self, $class; }
this at least executes but fails when
my $array = $self->{'_TagList'};executes inside a sub which is part of the TagList class with the error "Not a HASH reference".
I'm guessing my error still lays in the constructor but I'm at a lost there.
Thoughts??
Thanks for all your help!
In reply to Re^2: Accessing class data from a second thread
by Anonymous Monk
in thread Accessing class data from a second thread
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |