in reply to Text::xSV quote problem
my $file = "xxxx.cvs"; open(my $fh, "<", $file) or die "Cannot read '$file': $!"; my $line = <$fh>; chomp($line); my @fields = split /\t/, lc($line), -1; while ($line = <$fh>) { chomp($line); my %row; @row{@fields} = split /\t/, $line, -1; # save to a db }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Text::xSV quote problem
by cfreak (Chaplain) on Oct 03, 2006 at 22:15 UTC | |
by derby (Abbot) on Oct 04, 2006 at 12:54 UTC |