Subject: | Doc fix for getline_hr and column_names |
Great module!
Now, the docs for getline_hr() and column_names() suggest, but don't actually say, that calling getline_hr() is mandatory before calling getline_hr_all(), in order to get hashrefs.
But this is not the case. This code works perfectly without calling getline_hr():
open(my $io, '<', $path) || die "Can't open($path): $!\n";
$csv -> column_names($csv -> getline($io) );
for my $line (@{$csv -> getline_hr_all($io) })
{
...
}
close $io;
It would be nice to see this section of the docs clarified.
TIA.