summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-05-29 00:51:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-29 00:51:34 +0000
commit8fe05de6219a82cdabb2b00b140842462585472b (patch)
tree6fadee6115040a3d534d9f212d894cb95ddcfa37
parent7abfcde3a6a1fb58aed2939f97b94273ef31d507 (diff)
downloadperl-8fe05de6219a82cdabb2b00b140842462585472b.tar.gz
At least a partial fix for 20010528.004.
p4raw-id: //depot/perl@10277
-rw-r--r--lib/utf8_heavy.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utf8_heavy.pl b/lib/utf8_heavy.pl
index ab2e15ddec..7a70e29c25 100644
--- a/lib/utf8_heavy.pl
+++ b/lib/utf8_heavy.pl
@@ -34,7 +34,7 @@ sub SWASHNEW {
} else {
$file =~ s#^(Is|To)([A-Z].*)#$1/$2#;
}
- $list ||= eval { $caller->$type(); }
+ $list ||= ($caller ne 'main' && eval { $caller->$type(); })
|| do "$file.pl"
|| do "$encoding/$file.pl"
|| do "$encoding/Is/${type}.pl"