m626 has asked for the wisdom of the Perl Monks concerning the following question:
$NumOfFiles = 0; $PlacementDollar = 0; $CurrBal = 0; $file = "rpt.dat"; # Name the file open(REPORT, $file); # Open the file while(<REPORT>) { my($line) = $_; # Puts opened File Into Array Line by Line foreach $line ($_) { chop($rptdata); # Define input data from FACS report ($accnt_num,$date_listed,$disposition,$client,$cancel_reason, +$amt_paid,$initial_bal,$accnt_bal)=split(/","/,$line); if ($disposition eq "3DL0" or $disposition eq "3DL1") { $NumOfFiles += 1; $PlacementDollar += $initial_bal; $CurrBal += $accnt_bal; } close(REPORT); # Close the file
Edit by tye, add CODE tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: on Date Change Question
by jonadab (Parson) on Sep 16, 2003 at 23:21 UTC | |
|
Re: on Date Change Question
by kutsu (Priest) on Sep 16, 2003 at 18:41 UTC |