in reply to hash to sub

The parenthesis prevent perl from parsing it has the hash %shift. I think %{shift()} and %{+shift} are more common ways of writing this. But they all result in the same.