Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 lurking in the Monastery: (9)
As of 2014-08-30 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls