You should probably have a look at robin's Want. It's a muscular little XS module that i don't begin to understand, but it basically provides perl 6 want for perl 5. It might take the place of some of that hairy globbing, at least, and would allow you to detect list, boolean or hash context too.
In reply to Re: Context-Sensitive Subroutine Dispatch
by thpfft
in thread Context-Sensitive Subroutine Dispatch
by chromatic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |