Help for this page

Select Code to Download


  1. or download this
    print(Dumper(@array));  -> print(Dumper(\@array));
    print(Dumper(%hash));   -> print(Dumper(\%hash));
    print(Dumper($a_ref));  -> ok
    print(Dumper($h_ref));  -> ok
    
  2. or download this
    my @array = (
       [
    ...
          print($city->{State}, "\n");  # with key State.
       }
    }
    
  3. or download this
    my @array = (
       {
    ...
    foreach my $city (@array) {      # which contains refs to hashes
       print($city->{State}, "\n");  # with keys State.
    }