in reply to Re^2: Problem with forking in perl
in thread Problem with forking in perl
There are two possibilities
Change the parameters, so that the only list assignment is at the end.
In this case the scalars get one value and the rest is slurped by @acctArray. The sequence of parameters has also to be changed at the calling point.sub ProcessRecords() { my ($myNbr, $totalChilds, $totalAccts, @acctArray) = @_;
Or you use references:
and call it withsub ProcessRecords() { my ($ref_acctArray,$myNbr,$totalChilds,$totalAccts) = @_;
You than have to dereference $ref_acctArray with a @$ref_acctArray.ProcessRecords( \@SharedPlanAccts, $i1, $n, $totalAccts );
McA
|
|---|