As this is your first post, you might find reading Perl Monks Approved HTML tags useful, especially the part about code-tags. If you follow the advice there your future writeups will look far better. For now, I considered your node to be janitored (to add code-tags).
holli, /regexed monk/
Comment on Re^2: converting an arbitrary string into a hash based on a pattern