in reply to Import comma delimited file into an array

look at Text::CSV
  • Comment on Re: Import comma delimited file into an array

Replies are listed 'Best First'.
Re^2: Import comma delimited file into an array
by drodinthe559 (Monk) on Nov 18, 2008 at 20:39 UTC
    Here's my code if you want to take a look at it.
    use File::Glob; my @files = glob("C:/Wire/*.csv"); foreach my $x (@files) { open FILE, $x; while (<FILE>) { my @temp = split(/,/, $_); next if (substr($_,0,5) =~ /Debit/) ; print $_;} }
Re^2: Import comma delimited file into an array
by sathiya.sw (Monk) on Nov 19, 2008 at 10:04 UTC
    right choice is this module Text::CSV