Skip to content

Instantly share code, notes, and snippets.

@kentfredric
Created October 31, 2011 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentfredric/1329430 to your computer and use it in GitHub Desktop.
Save kentfredric/1329430 to your computer and use it in GitHub Desktop.
["S", "YBELT HAS A LINE\nFEED IN IT", "00000001", undef]
use 5.14.2;
use strict;
use warnings;
use Text::ParseWords;
use Data::Dump qw( pp );
sub csv_split {
return [ quotewords ',' , 0, shift ];
}
# This works because it has the full content
pp csv_split(qq{S,"YBELT HAS A LINE\nFEED IN IT",00000001,});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment