in reply to read the file and assign each line to a hash????
You don't want a regex. You want split.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg