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?? |
> 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
In Section
Seekers of Perl Wisdom
|
|