Help for this page

Select Code to Download


  1. or download this
    my @array = ( 'one', 'two', 'buckle my shoe', );
    
    my $array_ref = \@array;
    
  2. or download this
    for ( @$array_ref ) {
        ...
    }
    
  3. or download this
    print "The third element is $array_ref->[2] \n";
    
  4. or download this
    print keys %{ $array_ref };     # fatal!