Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: What are multiple $_[0] =~ operations doing?

by davido (Cardinal)
on Apr 01, 2005 at 09:44 UTC ( #444130=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $value = 100;
    changeit( $value );
    ...
    
    __OUTPUT__
    101
    
  2. or download this
    changeit( 100 );
    
    sub changeit {
        $_[0]++;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2021-01-25 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?