Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by tobyink (Abbot)
on Sep 28, 2013 at 07:13 UTC ( #1056113=note: print w/ replies, xml ) Need Help??


in reply to Re^5: 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?

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


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056113]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2015-05-22 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (465 votes), past polls