Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: How to process named parameters that have the same key name?

by maard (Pilgrim)
on Oct 19, 2005 at 10:58 UTC ( [id://501243]=note: print w/replies, xml ) Need Help??


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?

$VAR1 = { 'insect' => [ 'ant', 'spider' ], 'animal' => 'monkey', 'fish' => 'tuna' };
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'] };

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://501243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found