in reply to Perl::Critic reports an error

A quick look about to code seems to indicate PPI version 1.205 or higher is needed. Is that what you have?

Replies are listed 'Best First'.
Re^2: Perl::Critic reports an error
by elTriberium (Friar) on Dec 14, 2009 at 18:17 UTC

    This can very well be it: # perl -MPPI -e 'print PPI->VERSION' 1.201

    Thanks for pointing this out to me, I didn't find this requirement anywhere. I'm also having a few issues with CPAN, it's not automatically installing the newest version of a module. I have to force it by manually specifying the .tar.gz file. But I guess that's another issue.

    Also thanks to Khen1950fx, I'll see if I can use that script.

      I didn't find this requirement anywhere.

      Then I imagine you didn't use the installer or cpan. Also see the distribution's META.yml.

        I used CPAN. But as I mentioned I had to force the installation of the newest Perl::Critic version with:

        force install E/EL/ELLIOTJS/Perl-Critic-1.105.tar.gz

        It probably wasn't a good idea to do it this way and I should have tried to resolve the problems I have with CPAN first.

        Edit: OK, thanks again for you help. I reinstalled PPI and now Perl::Critic works correctly.