Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 musing on the Monastery: (11)
As of 2014-07-23 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (133 votes), past polls