At least a partial fix for 20010528.004.
Jarkko Hietaniemi [Tue, 29 May 2001 00:51:34 +0000 (00:51 +0000)]
p4raw-id: //depot/perl@10277

lib/utf8_heavy.pl

index ab2e15d..7a70e29 100644 (file)
@@ -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"