in reply to Re^2: Import comma delimited file into an array
in thread Import comma delimited file into an array
use strict; use warnings; use File::Glob; my @files = glob("C:/Wire/*.csv"); for my $file (@files) { open my $fh, '<', $file or die "can not open file $file: $!"; while (<$fh>) { next if (substr($_,0,5) eq 'Debit'); my $row6 = (split /,/)[6]; print "{1100}02P N", $row6, "{1110}{1120}{1510}{1520}{3320}{3400 +}{3600}{4320}{5000}\n"; } close $fh; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Import comma delimited file into an array
by massa (Hermit) on Nov 19, 2008 at 10:37 UTC | |
by toolic (Bishop) on Nov 19, 2008 at 14:44 UTC | |
by Anonymous Monk on Nov 19, 2008 at 14:33 UTC | |
|
Re^4: Import comma delimited file into an array
by drodinthe559 (Monk) on Nov 19, 2008 at 23:05 UTC |