I'd rather like a function like this:
my $CSV = openCsv (file => "file.csv", headers => "auto"); while (my $row = <$CSV>) { print "$row->{Foo} has $row->{Bar} bar(s)\n"; }
There is nothing preventing READLINE() of a tied handle from returning an array or hash reference.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Low-threshold function in Text::CSV_XS
by Jenda
in thread Low-threshold function in Text::CSV_XS
by Tux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |