Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Pass by value acts like pass by reference

by gmpassos (Priest)
on Jul 12, 2004 at 07:19 UTC ( [id://373552]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $ref = [0 , 1 , 2 , 3] ;
    
  2. or download this
      my @array = (0 , 1 , 2 , 3) ;
      my $ref = \@array ;
    
  3. or download this
      $main_ref = [1 , 2 , 3] ;
     
    ...
    
      $ref2 = 'not a ref anymore' ;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-25 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found