Looked at this for a couple moments before it really hit me what was happening. I use hashes regularly in my code but never quite like this. Brilliant and slick. I expect a hash lookup is going to be quite efficient. Especially since this turns the problem on its ear and does a hash lookup of the value to a small result set.
Using the hash reference to return the sub name that you end up executing is my favorite part. (now isn't that a sentence)
-Kurt
In reply to Re: Re: Re: Flag variables
by KPeter0314
in thread Flag variables
by oakbox
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |