Help for this page

Select Code to Download


  1. or download this
    sub new {
        my $class = shift;
    ...
        bless( $closure, $class );
        return $closure;
    }
    
  2. or download this
    # public to add accounts to the creditaccounts
    sub addCreditAccount {
    ...
        my $accountsref = &{$closure}( "CREDITACCOUNTS" );
        push @{ $accountsref }, $account;
    }
    
  3. or download this
    # public getBalansCreditAmount to get the amount of all accounts
    sub getBalansCreditAmount {
    ...
        }
        return $totalCreditAmount;
    }
    
  4. or download this
    # private getCreditAccounts
    sub getCreditAccounts {
    ...
        my @accounts = @{ &{$closure}( "CREDITACCOUNTS" ) };
        return @accounts;
    }