in reply to trouble with namespace::clean

So which version of namespace::clean do you have?

Replies are listed 'Best First'.
Re^2: trouble with namespace::clean
by nikmit (Sexton) on May 13, 2016 at 09:27 UTC
    0.24 - as distributed by RedHat

      But you've over-ridden that by using cpanm with the system perl, no? That way lies madness and despair. Keep the system perl and cpanm completely separated to avoid this particular brand of infernal torment.

      Find out where cpanm has installed its versions (hopefully not in the vendor tree) and clear out everything that was added in your last change - perllocal.pod should help with that.

        I probably have mixed system perl with CPAN... Can anyone point at a guide on how to properly install and maintain perl (and avoid compatibility issues between CPAN and vendor distros)?

        In my case, the system uses perl for dependencies (e.g. munin and nagios) and I add modules not available in the system distro (e.g. yum) via CPAN.

        It would be good to have everything relating to the Dancer2 app separate. I would then be able to backup the app and all the perl modules it relies on together.

        It isn't obvious to me how to do that though, since @INC contains both cpan and vendor perl and it seems all too easy to mix the two.