- 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
- or download this
my @array = (
[
...
print($city->{State}, "\n"); # with key State.
}
}
- or download this
my @array = (
{
...
foreach my $city (@array) { # which contains refs to hashes
print($city->{State}, "\n"); # with keys State.
}