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
In reply to Re: Multiple Hash Keys Module
by Zaxo
in thread Multiple Hash Keys Module
by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |