for (keys %hash) { print; } for (key %somename) { print; }