There are a number of existing modules on CPAN that address this issue, but I don't know of any that generate the particular kind of two-level-lookup that you've described, so I think you're best off continuing to use this code to generate the methods yourself.
In reply to Re: Creating instance methods using closures
by simonm
in thread Creating instance methods using closures
by bobf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |