Created
October 31, 2011 23:50
-
-
Save kentfredric/1329430 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["S", "YBELT HAS A LINE\nFEED IN IT", "00000001", undef] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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