BEGIN { a["hello"] = 1 a["world"] = 2 a["!"] = 3 # iterate over keys for(key in a) { print key, a[key] } }