in reply to Removing everything before the first comma separator on each line of a text file
You declare a Text::CSV object but you don't use it. Dit you read its docs?
If you safely want to drop the first column, here's a simple alternative using RFC7111:
use Text::CSV_XS qw( csv ); csv (in => csv (in => $opt->{in}, fragment => "col=2-*"), out => $opt- +>{out}));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removing everything before the first comma separator on each line of a text file
by zodell (Initiate) on Sep 16, 2014 at 12:55 UTC |