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.
Comment on
Re: hash to sub
Select
or
Download
Code
In Section
Seekers of Perl Wisdom