Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 surveying the Monastery: (12)
As of 2015-07-30 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls