NAME
Text::CSV::Easy_XS - Easy CSV parsing and building
VERSION
Version 0.01
SYNOPSIS
use Text::CSV::Easy_XS qw(csv_build csv_parse);
my @fields = csv_parse($string);
my $string = csv_build(@fields);
DESCRIPTION
Text::CSV::Easy_XS is a simple module for parsing and building simple CSV fields.
Integers do not need to be quoted, but strings must be quoted:
1,"two","three" OK
"1","two","three" OK
1,two,three NOT OK
If you need to use a literal quote ("), escape it with another quote:
"one","some ""quoted"" string"
SUBROUTINES
csv_build( List @fields ) : Str
Takes a list of fields and will generate a csv string. This subroutine will raise an exception if any errors occur.
csv_parse( Str $string ) : List[Str]
Parses a CSV string. Returns a list of fields it found. This subroutine will raise an exception if a string could not be properly parsed.
SEE ALSO
AUTHOR
Thomas Peters, <weters@me.com>
COPYRIGHT AND LICENSE
Copyright (C) 2013 by Thomas Peters
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.4 or, at your option, any later version of Perl 5 you may have available.