Text-CSV icon indicating copy to clipboard operation
Text-CSV copied to clipboard

Mention missing final step in getting header order back

Open jidanni opened this issue 4 years ago • 0 comments

We read

       keep_headers

       When using hashes,  keep the column names into the arrayref passed,  so
       all headers are available after the call in the original order.

       my $aoh = csv( in => "file.csv", keep_headers => \my @hdr );

OK, but then you need to mention how to get them back:

       csv( in => $aoh, headers => \@hdr, out => "out.csv" );

else they'll go down the drain!

jidanni avatar Feb 20 '21 05:02 jidanni