Help for this page

Select Code to Download


  1. or download this
    my @dateParts = split /[\/\-]/, $chaseList[1];
    my $month = $dateParts[0];    # For purposes of example; see note belo
    +w
    
  2. or download this
        $vendor = $chaseList[2];
        $amount = $chaseList[3];
        # Now we can directly reference the hash by vendor inside the arra
    +y by month number:
        # $chaseArray[$month]{$vendor}
    
  3. or download this
        my (
            $tranType, 
    ...
            @extraStuffJustInCase
        ) = split /\,/, @chaseList;
        my ($tranVendor, @restOfDesc) = split /\s/, $tranDesc;
    
  4. or download this
        $chaseArray[$month]{$tranVendor} += $tranAmount;