in reply to Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?

I've been working on a Method::Signatures-like module recently, and it does use %_ for this purpose, but only if the sub is known to take at least one named parameter.

If you're interested in beta testing, I can let you know if/when I have something vaguely usable.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
  • Comment on Re: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
  • Download Code