$ cat test.raku
#!raku
use Slang::Tuxic;
use Text::CSV;
say "All of it";
my @aoh1 = csv (in => "test.csv", out => Hash);
dd @aoh1;
say "Fragment col 2";
my @aoh2 = csv (in => "test.csv", out => Hash, fragment => "col=2");
dd @aoh2;
$ cat test.csv
"No.","Name"
"1","hello"
"2","bye"
$ raku test.raku
All of it
Array @aoh1 = [{:Name("hello"), "No." => "1"}, {:Name("bye"), "No." =>
+ "2"}]
Fragment col 2
Array @aoh2 = [{:Name("hello")}, {:Name("bye")}]
If you want a ; as separator, just add sep => ";".
You are allowed to use other ways to write it. Just read the docs.
Enjoy, Have FUN! H.Merijn