in reply to Re^4: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs? (ugly++)
in thread Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?

Like with $&, $`, $' you would only have a performance hit if you actually used it.

  • Comment on Re^5: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs? (ugly++)
  • Download Code

Replies are listed 'Best First'.
Re^6: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs? (ugly++)
by tobyink (Canon) on Sep 28, 2013 at 07:13 UTC

    In recent versions of Perl there's virtually no performance hit using these variables any more.

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name