summaryrefslogtreecommitdiff
path: root/lib/base.pm
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-05-14 16:15:09 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-05-14 16:15:09 +0000
commita5871d1a83cd3d5c7292135cbb30a336a8552ab0 (patch)
treee056f664b56c544259b77891801390c472109ed0 /lib/base.pm
parent841a92052a6767bd088da257cef4b0db4ccd123d (diff)
parent20408e3ccf502b6ce4033d8203710405ec9ef8f6 (diff)
downloadperl-a5871d1a83cd3d5c7292135cbb30a336a8552ab0.tar.gz
Integrate win32 branch into mainline
p4raw-id: //depot/perl@969
Diffstat (limited to 'lib/base.pm')
-rw-r--r--lib/base.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.pm b/lib/base.pm
index e20a64bc9a..4c4fb8b86b 100644
--- a/lib/base.pm
+++ b/lib/base.pm
@@ -34,6 +34,9 @@ sub import {
foreach my $base (@_) {
unless (defined %{"$base\::"}) {
eval "require $base";
+ # Only ignore "Can't locate" errors from our eval require.
+ # Other fatal errors (syntax etc) must be reported.
+ die if $@ && $@ !~ /^Can't locate .*? at \(eval /;
unless (defined %{"$base\::"}) {
require Carp;
Carp::croak("Base class package \"$base\" is empty.\n",