Help for this page

Select Code to Download


  1. or download this
    while( my $accnt = $allAccnt->next ) {
        $accnt->calcInterest() if $accnt->inCredit();
    }
    
  2. or download this
    sub calcInterest {
        my $self = shift;
        return unless $self->inCredit();
        ...
    }
    
  3. or download this
    $_->calcInterest() while $allAccnts->next;