in reply to beginner question - why is hash key unquoted and in capitals
Hash keys hardly ever have to be quoted, especially not if they're just one-word strings. As for the key being capitalized, that's just due to the author of that snippet adhering to one or another convention. Technically it doesn't really matter, as long as one is consistent throughout the entire program.
|
|---|