use Text::CSV_XS qw[]; my $data = Text::CSV_XS::csv( in => $tsv, sep_char => "\t", quote_char => q["], # undef headers => 'auto', # undef to return ArrayRef[ArrayRef] );
use Text::CSV_XS qw[]; Text::CSV_XS::csv( in => Array[HashRef], out => 'filename.csv', headers => [qw[field1 field2 ...]], binary => 1, encoding => 'UTF-8', decode_utf8 => 0, eol => $LF, );
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.