Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$ cat
use v6;
use Text::CSV_XS:from<Perl5>;
my @rows;
my $csv =
or die "Cannot use CSV: ", Text::CSV_XS.error_diag;
my Int $sum = 0;
for lines :eager {
$sum += $csv.fields.elems;
$ head -2 /tmp/hello.csv
hello,","," ",world,"!"
hello,","," ",world,"!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment