Subject: | PPI::Statement::Sub.pm fix to use Params::Util line to resolve _INSTANCE error |
When using PPI (through Perl::Critic) I got the following error:
Undefined subroutine &PPI::Statement::Sub::_INSTANCE called at ../lib/site_perl/5.8.6/PPI/Statement/Sub.pm line 86.
I resolved the problem by changing the "use Params::Util" line in Sub.pm from:
use Params::Util ();
to:
use Params::Util '_INSTANCE';
Les