Help for this page

Select Code to Download


  1. or download this
    my %h = ( foo => 'bar' );
    my @a = ( \%h );
    print "worked fine\n" if $a[0]{foo} eq 'bar';
    
  2. or download this
    my %h = ( foo => 'bar' ); 
    my @a = ( \%h ); 
    my $r = \@a; 
    print $r->[0]{foo}, "\n"; # $r[0] won't work since @r doesn't exist.