Keep It Simple, Stupid | |
PerlMonks |
Re: Writing hashes as records to a CSV fileby Tux (Canon) |
on Dec 09, 2021 at 08:55 UTC ( [id://11139494]=note: print w/replies, xml ) | Need Help?? |
My variation using csv:
A suggestion might be to add quote_empty => 1 to be able to distinguish between missing keys and defined keys. But as that does not shows the difference between missing keys and keys that point to an undefined value, I would suggest something like this (unless you don't care about those differences):
->
To answer LanX' question: as CSV is streaming, you don't know what is to come, so there is no builtin functionality to find unique values in CSV, but there are enough builtin features to do it yourself. Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|