in reply to Re: Split Tab separated text file into valid and invalid records
in thread Split Tab separated text file into valid and invalid records
#!/usr/bin/perl use strict; use warnings; my $file = $ARGV[0] or die "Need to get CSV file on the command line\n +"; open (FILE, $file); while (<FILE>) { chomp; ($emp, $dt, $account, $baldue, $credit, $netarrears, $locno, $devno, +$parkbal, $rentnoretro, $maintbal, $legbal, $otherbal, $retrobal, $chu, $mk, $bu +ildno, $mo veoutdt, $status, $legal, $legdt) = split("\t"); print "$dt $account $baldue $credit $netarrears $locno\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Split Tab separated text file into valid and invalid records
by ww (Archbishop) on Sep 23, 2013 at 13:38 UTC | |
by Anonymous Monk on Sep 23, 2013 at 15:14 UTC | |
|
Re^3: Split Tab separated text file into valid and invalid records
by hdb (Monsignor) on Sep 23, 2013 at 13:23 UTC |