Changes

Jump to navigation Jump to search
94 bytes added ,  17:36, 28 December 2013
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;

Navigation menu