Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: RFC: Idiom for named read-write arguments (aliases) instead of using $_[0] etc

by LanX (Canon)
on Sep 02, 2012 at 20:47 UTC ( #991327=note: print w/ replies, xml ) Need Help??


in reply to Re^3: RFC: Idiom for named read-write arguments (aliases) instead of using $_[0] etc
in thread RFC: Idiom for named read-write arguments (aliases) instead of using $_[0] etc

good point, since $a and $b are magical globals you can even avoid the our-decalaration (in this case)

Cheers Rolf


Comment on Re^4: RFC: Idiom for named read-write arguments (aliases) instead of using $_[0] etc
Re^5: RFC: Idiom for named read-write arguments (aliases) instead of using $_[0] etc
by BrowserUk (Pope) on Sep 02, 2012 at 21:03 UTC

    Didn't think of that, but I have to wonder if $a & $b are really that much better than $_[0] & $_[1] ?

    Okay for swap(), I guess.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-11-27 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (187 votes), past polls