From: Rafael Garcia-Suarez Date: Wed, 12 Sep 2007 09:32:47 +0000 (+0000) Subject: Make @INC available in base.pm's error message when X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5565990ae7d1a23693f78cbe611ec2a5af8dd5e1;p=p5sagit%2Fp5-mst-13.2.git Make @INC available in base.pm's error message when a module can't be found. See CPAN bug #28582. p4raw-id: //depot/perl@31853 --- diff --git a/lib/base.pm b/lib/base.pm index 9649e8a..fc0f7f9 100644 --- a/lib/base.pm +++ b/lib/base.pm @@ -92,9 +92,11 @@ sub import { die if $@ && $@ !~ /^Can't locate .*? at \(eval /; unless (%{"$base\::"}) { require Carp; + local $" = " "; Carp::croak(<