Hi,
just a side note while looking at your problem. You have the function
sub ProcessRecords()
{
my ( @acctArray,$myNbr,$totalChilds,$totalAccts) = @_;
and call this function with
ProcessRecords( @SharedPlanAccts, $i1, $n, $totalAccts );
I hope you're aware of the fact that
@acctArray slurps ALL args and
$myNbr, $totalChilds,$totalAccts will be
undef.
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