in reply to Re: Problem with forking in perlin thread Problem with forking in perl
There are two possibilities
Change the parameters, so that the only list assignment is at the end.
sub ProcessRecords() { my ($myNbr, $totalChilds, $totalAccts, @acctArray) = @_; [download]
Or you use references:
sub ProcessRecords() { my ($ref_acctArray,$myNbr,$totalChilds,$totalAccts) = @_; [download]
ProcessRecords( \@SharedPlanAccts, $i1, $n, $totalAccts ); [download]
McA