Make CSV list from values in AoHby tel2 (Pilgrim)
|on Aug 17, 2018 at 22:35 UTC||Need Help??|
tel2 has asked for the wisdom of the Perl Monks concerning the following question:
Let's say I've got an array of hashes like this:
and I want to produce a 'quoted' comma separated list (a bit like CSV) of the names, i.e.:
can anyone offer more concise/efficient/elegant ways of doing it than this kind of approach, which does work, and is pretty concise, but ain't pretty:
Order of names doesn't matter.
Update: If there are no names (i.e. @AoH is empty), the output should be: