App-CCSV
view release on metacpan or search on metacpan
lib/App/CCSV.pm view on Meta::CPAN
# Adding data, storing in a new CSV:
:~$ perl -MApp::CCSV -ne '$sum=$f[1]+$f[4]; csay @f,$sum' < csv.csv > csv2.csv
# Extracting some values from your CSV, storing them in a new CSV:
:~$ perl -MApp::CCSV -ne 'csay @f[1,4,7,22]' < csv.csv > csv2.csv
# Easy checking if there are field values that contain the quote char -
# means, checking if you can get by with normal autosplit or if you really have
# to treat your file as CSV (this example works from perl 5.10 onwards):
:~$ perl -MApp::CCSV -F/\;/ -lanE 'say if !(@f ~~ @F)' < csv.csv
=head1 SEE ALSO
L<Text::CSV_XS>, L<Config::General>, L<perlrun>
=head1 BUGS
There surely are ...
( run in 1.574 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )