Skip to content

Instantly share code, notes, and snippets.

@andrawaag
Created June 1, 2013 09:30
Show Gist options
  • Save andrawaag/5689798 to your computer and use it in GitHub Desktop.
Save andrawaag/5689798 to your computer and use it in GitHub Desktop.
%fruitcolor = ("apple", "red", "banana", "yellow", "orange", "orange", "kiwi", "brown");
while (($key, $value) = each(%fruitcolor)){
print "A ". $key." is ".$value."\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment