http://www.perlmonks.org?node_id=238778


in reply to Re: Ordering hash replacements to avoid clobbering things
in thread Ordering hash replacements to avoid clobbering things (update chaining)

Yea, that'll work too

(although I think using a module for this is a bit overkill; especially since they're simple regex-free substitutions)