in reply to Re^3: Modifying CSV File
in thread Modifying CSV File
while (<$fh1>) { chomp; next if $_ eq ''; s{ ("[^"]+") }{ (my $one = $1) =~ s{,}{-}xmsg; $one =~ s{"}{}g; $o +ne; }xmsge; print $_, "\n"; }
The test file you made should be sufficient because the only thing I am changing is the comma to a dash and removing the quotes from the one column in question.
"Its not how hard you work, its how much you get done."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Modifying CSV File
by Tux (Canon) on Jun 18, 2015 at 12:41 UTC | |
by roho (Bishop) on Jun 19, 2015 at 15:38 UTC |