in reply to Installing modules help

If you have multiple versions of Perl installed on your system, maybe your user name and root are each seeing a different one. Compare:

$ which perl $ sudo which perl

Also worth comparing:

$ echo $PERL5LIB $ sudo /bin/sh -c 'echo $PERL5LIB'
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Replies are listed 'Best First'.
Re^2: Installing modules help
by cyates (Novice) on Jul 14, 2013 at 01:32 UTC

     $ sudo which perl returned /usr/bin/perl  sudo /bin/sh -c 'echo $PERL5LIB' and  echo $PERL5LIB returned nothing