Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Multiple Hash Keys Module

by Zaxo (Archbishop)
on May 23, 2003 at 14:36 UTC ( [id://260363]=note: print w/replies, xml ) Need Help??


in reply to Multiple Hash Keys Module

With mild quibbles on quoting, what you have is fine. It's simple and if it does what you want it would be hard to improve on. If anything, it's a little more abstracted than some might like. I can't think of any modular sugar that I would prefer to your code.

As for quoting, the '=>' form of comma stringifies its left hand side, so key can remain unquoted. If the value strings contain no variables to interpolate, single quotes are preferred, and if thay have no whitespace, qw() might be handy.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-16 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found