Line 173:
Line 173:
$fruit_color{"apple"}; # gives "red"
$fruit_color{"apple"}; # gives "red"
−
You can get at lists of keys and values with '''keys()''' and '''values()'''.
+
You can get at lists of keys and values with '''[http://perldoc.perl.org/functions/keys.html keys()]''' and '''[http://perldoc.perl.org/functions/values.html values()]'''.
my @fruits = keys %fruit_colors;
my @fruits = keys %fruit_colors;