Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl 5 -> 6 do's and don'ts?

by liz (Monsignor)
on Aug 01, 2003 at 22:19 UTC ( #280177=note: print w/ replies, xml ) Need Help??


in reply to Perl 5 -> 6 do's and don'ts?

For all of you (considering) using %_, this just in from p5p by TheDamian:

From a Perl 6 perspective, it seems likely that C<%_> will be the name commonly used for the "slurpy hash" of a subroutine. Just as C<@_> will often be the name used for the "slurpy array". See Exegesis 6 for more details.

Indeed, when it comes to object constructors (all of which implicitly have a slurpy hash), C<%_> might well be the automatically provided name for that hash. See Exegesis 12 for more details. ;-)

Hence, making C<%_> mean something different in core Perl 5 might possibly be "forwards incompatible"

Liz


Comment on Re: Perl 5 -> 6 do's and don'ts?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-10-24 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls