in reply to Re: How to analyse structured data to get a hash
in thread How to analyse structured data to get a hash

A small point:
chomp $line; #### not needed with below ### $line=~s/^\s+//; $line=~s/\s+$//; # this deletes all line ending char's # so the chomp is unnecessary.