Just imagine you need to change the quote from ' to ", then you'll have to change 4 code places instead of 2.
depends what "if there are no names" means.
map{ $AoH[$_]{name} || "" } should cover all cases except if the name "0" is not allowed (untested)
good night! :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: Make CSV list from values in AoH
by LanX
in thread Make CSV list from values in AoH
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |