Help for this page

Select Code to Download


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