Help for this page

Select Code to Download


  1. or download this
    HoA test 1: ARRAY(0x8111b78)
    HoA test 1: aaa
    HoA test 1: 3
    
  2. or download this
    # Initialisation
    my %HoA = ( 'camel' => [ 'flea', 'bug-ridden', 'brown' ],
    ...
    $HoA{'frog'}= [ 'tadpole', 'no bugs', 'green' ];
    # Getting element of an array
    print "A camel is: ".$HoA{'camel'}->[2];
    
  3. or download this
    # HoA from above
    use Data::Dumper;
    print Dumper(\%HoA);
    
  4. or download this
    $VAR1 = {
              'flea' => [
    ...
                          'green'
                        ]
            };