Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by hdb (Monsignor)
on Sep 27, 2013 at 10:29 UTC ( #1055956=note: print w/replies, xml ) Need Help??


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 (Abbot) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055956]
help
Chatterbox?
[hippo]: Which O/S?
[vedagiri89]: i have searched many forum...not getting resolutions
[vedagiri89]: centos
[Corion]: vedagiri89: Either what choroba said, or maybe you misspelled some module name (on Windows), like use Strict; or something like that.
[vedagiri89]: @choroba, what to do for that
[Corion]: Ah, you are not on Windows, so disregard my opinion.
[vedagiri89]: in centos, how to fix this.
[choroba]: You have to find out why it happened. Was there an OS update?
[vedagiri89]: that is what i can't getting solution
[vedagiri89]: recently purchased centos server and doing migration of app

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2018-06-19 11:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (113 votes). Check out past polls.

    Notices?