|
|
| Welcome to the Monastery | |
| PerlMonks |
Re^2: Problem with perlcritic when using Moose objectby bangor (Monk) |
| on Oct 04, 2018 at 15:42 UTC ( [id://1223536]=note: print w/replies, xml ) | Need Help?? |
|
I don't think it is caused by the contents of $hash as the same error is reported when $Person->shift('one') is called.
I think it is caused by the use of the keyword 'shift', and it is picked up by perlcritic as an attempt to dereference. And yes, I would never use that as a hash key either - note: I didn't write this code
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||