Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: the annoying keys "key" and "value"

by LanX (Saint)
on Dec 23, 2010 at 21:42 UTC ( [id://878888]=note: print w/replies, xml ) Need Help??


in reply to Re: the annoying keys "key" and "value"
in thread the annoying keys "key" and "value"

> key was easier to work with if it weren't stringified,...

good point! for example references are difficult to be used as simple keys.

> I would've used a flat array (key1, val1, key2, val2, ...) or a array of "tuples" ([key1,val1], [key2,val2,] ...).¹

I'd rather prefer the later, far easier to combine with map or grep.

Cheers Rolf

1) missing code tags added

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-28 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found