Help for this page

Select Code to Download


  1. or download this
    # form 1
    mine @arr = (1,2,3);    # ==> my $arr = \@arr;
    ...
    mine $arr = [1,2,3];    # ==> my \@arr = $arr;
    
    # same according to ours and other datatypes
    
  2. or download this
    mine @arr = (1,2,3);   
    
    # and later accidentally 
    
    $arr = [4,5,6];       # ==> \@arr != $arr
    
  3. or download this
    mine $arr = [1,2,3];    
    
    ...
    # even worse
    
    $arr = { a=> 1 }       # ==> @arr must be detroyed? or what?