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


in reply to Re: Delete space at the end of a hash element
in thread Delete space at the end of a hash element

So you are completely rebuilding the hash in one go, rather than adding/removing one entry at a time. That's far more elegant!