in reply to print out keys of hash with carriage returns

Or

print FILE "$_\n" for (keys %hash);