Harumph, also AIX will spill its guts (i.e. dump core)
[p5sagit/p5-mst-13.2.git] / lib / utf8_heavy.pl
index 3ac4ef9..a843737 100644 (file)
@@ -36,9 +36,9 @@ sub SWASHNEW {
     }
 
     {
-       local $@;
-
-       $list ||= ($caller ne 'main' && eval { $caller->$type(); })
+        $list ||=
+           ( exists &{"${caller}::${type}"} &&
+             eval { $caller->$type() } )
            || do "$file.pl"
            || do "$encoding/$file.pl"
            || do "$encoding/Is/${type}.pl"