in reply to Re: How to process named parameters that have the same key name?
in thread How to process named parameters that have the same key name?
If duplication is allowed, then it would be better to construct HoA, where values are always arrays to simplify further walking through such structure.$VAR1 = { 'insect' => [ 'ant', 'spider' ], 'animal' => 'monkey', 'fish' => 'tuna' };
$VAR1 = { 'insect' => [ 'ant', 'spider' ], 'animal' => ['monkey'], 'fish' => ['tuna'] };
|
|---|