http://www.perlmonks.org?node_id=1027313


in reply to Re^2: combination of multiple installed Perls and some environment variables cause segfaults
in thread combination of multiple installed Perls and some environment variables cause segfaults

Adding

BEGIN { delete $ENV{PERL5LIB} };

... to the top if the script shouldn't mess anything up. It will only have any effect on child processes launched by the script - e.g. things launched using system() or backticks.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name