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}));

Enjoy, Have FUN! H.Merijn
  • Comment on Re: Removing everything before the first comma separator on each line of a text file
  • Download Code

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

    Yes the Text::CSV declaration is part of the code that has been left in there from past attempts to get this script working. I forgot it was still there before I posted