in reply to Passing self to process as reference
And in processjobs you are expecting the hash referencemy @paramters = ($self); my $thread = new Thread \&processJobs, \@paramters;
if my understanding on your post is correct, why can't you change line like thissub processJobs { my $self = shift; }
This is not an answer to your question, but I saw an un-necessary use of an intermediate array, i pointed you that.my $thread = new Thread \&processJobs, $self; and in process jobs use like this sub processJobs { my $self = $_[0]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing self to process as reference
by Anonymous Monk on Mar 18, 2009 at 10:14 UTC |