Help for this page
# private getCreditAccounts sub getCreditAccounts { ... # working on a copy of the original array... my @anotherArray = $obj->getCreditAccounts(); push @anotherArray, "Data";
# private getCreditAccounts # now returning reference to the original array ... my $account = shift; push @{ $closure->getCreditAccounts() }, $account; }