in reply to Initialize an hash with string

Consider Parse::RecDescent.