in reply to Problem with forking in perl
Hi,
just a side note while looking at your problem. You have the function
and call this function withsub ProcessRecords() { my ( @acctArray,$myNbr,$totalChilds,$totalAccts) = @_;
I hope you're aware of the fact that @acctArray slurps ALL args and $myNbr, $totalChilds,$totalAccts will be undef.ProcessRecords( @SharedPlanAccts, $i1, $n, $totalAccts );
For all reading this:
use strict; use warnings; use Data::Dumper; my @list = qw(1 2 3 4); func(@list, 'a', 'b', 'c'); sub func { my (@list, $s1, $s2, $s3) = @_; print Dumper(\@list), "\n"; print Dumper(\$s1), "\n"; print Dumper(\$s2), "\n"; print Dumper(\$s3), "\n"; }
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with forking in perl
by rkrish (Acolyte) on Mar 14, 2013 at 08:51 UTC | |
by McA (Priest) on Mar 14, 2013 at 09:07 UTC |