in reply to hashes

You could create the hash all at once:
%hash = map /(\S+)\s+(.*)/, <FILE>;


japhy -- Perl and Regex Hacker