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

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

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

Help for this page

Select Code to Download


  1. or download this
    $x=\1;
    $y=$$x;        # equivalent to $y = 1, i.e. a copy
    $y++;
    print $y;      #> 2
    
  2. or download this
    sub swap {
      my ($a, $b) = \(@_);
    ...
     
      return;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
As of 2014-10-30 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls