1 2 3 4 5 6 7
my %fruit_colors = ("apple", "red", "banana", "yellow"); my @fruits = keys %fruit_colors; my @colors = values %fruit_colors; print @fruits; print "\n"; print @colors;
1 2
bananaapple yellowred