summaryrefslogtreecommitdiff
path: root/lib/utf8_heavy.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utf8_heavy.pl')
-rw-r--r--lib/utf8_heavy.pl15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/utf8_heavy.pl b/lib/utf8_heavy.pl
index 7a70e29c25..3ac4ef9b59 100644
--- a/lib/utf8_heavy.pl
+++ b/lib/utf8_heavy.pl
@@ -34,11 +34,16 @@ sub SWASHNEW {
} else {
$file =~ s#^(Is|To)([A-Z].*)#$1/$2#;
}
- $list ||= ($caller ne 'main' && eval { $caller->$type(); })
- || do "$file.pl"
- || do "$encoding/$file.pl"
- || do "$encoding/Is/${type}.pl"
- || croak("Can't find $encoding character property \"$type\"");
+
+ {
+ local $@;
+
+ $list ||= ($caller ne 'main' && eval { $caller->$type(); })
+ || do "$file.pl"
+ || do "$encoding/$file.pl"
+ || do "$encoding/Is/${type}.pl"
+ || croak("Can't find $encoding character property \"$type\"");
+ }
$| = 1;