This part:
shift( $hash->{shift} )
... confuses perlcritic into thinking you're doing:
shift($arrayref)
... and it wants you to do:
shift(%{$arrayref})
... instead. Performing array function directly on arrayrefs is an experimental feature which sucks and is stupid.
In reply to Re: Problem with perlcritic when using Moose object
by tobyink
in thread Problem with perlcritic when using Moose object
by bangor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |