The Perl parser could confuse the bareword shift in the braces with its core function shift instead of converting it to a string.
I'm pretty sure that Perl will always take $hash{shift} to mean the hash key "shift", although adding any other characters will change that ($hash{+shift}, $hash{shift()}, etc.) See also.
In reply to Re^2: Problem with perlcritic when using Moose object
by haukex
in thread Problem with perlcritic when using Moose object
by bangor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |