Help for this page

Select Code to Download


  1. or download this
    my $r_array = [1,2,3]; # make an array and put a reference to it in $r
    +_array. - note square brackets
    
    ...
    sub foo {return [1,2,3]) #this sub returns a reference to an array
    $r_array = foo();  #you could call it like this
    
  2. or download this
    use Data::Dumper; print Dumper($r_array1, $r_array2);
    
    ...
                10
              ]
            ];