Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 perusing the Monastery: (8)
As of 2014-07-28 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls