I've been hacking/man-ing/searching for a couple of hours now and I'm getting a bit tired. I was curious as to an elegant way to read a file into a hash.
Take a hosts file for example...
I just want to assign this to a hash for further processing, e.g.
I normally figure this stuff out in different ways, but I'd like to use a hash for this.