Help for this page

Select Code to Download


  1. or download this
    ARRAY(0x80fe5a8)
    ARRAY(0x80fe5d2)
    ARRAY(0x80fe6f4)
    
  2. or download this
    # Data::Dumper saves the day again
    use Data::Dumper;
    print Dumper (\@name);
    ...
    {
         print join (',', @$row),"\n";
    }
    
  3. or download this
    my @array      = qw[ 1 2 3 ];
    my $array_ref  = \@array;      # Backslash makes a reference
    my @array_copy = @$array_ref;  # @ de-references array reference
    ...
    print $array[1];       # Should be '5'
    $array_copy[1]  = 6;   # Modifies @array_copy, not @array
    print $array[1];       # Still '5'