X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcharnames.pm;h=ef1472c31d98356408ca87905adfeb3db6629177;hb=55f4245edad4e38b1869f0a6467a997a59257a0f;hp=54f5179acd8a5b8ac643469dfc22bfe837fff0de;hpb=bd5c3bd9b8ed3edb9439b1889b9dae06dd1644d4;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/charnames.pm b/lib/charnames.pm index 54f5179..ef1472c 100644 --- a/lib/charnames.pm +++ b/lib/charnames.pm @@ -5,7 +5,6 @@ use File::Spec; our $VERSION = '1.05'; use bytes (); # for $bytes::hint_bits -$charnames::hint_bits = 0x20000; # HINT_LOCALIZE_HH my %alias1 = ( # Icky 3.2 names with parentheses. @@ -192,7 +191,6 @@ sub import if (not @_) { carp("`use charnames' needs explicit imports list"); } - $^H |= $charnames::hint_bits; $^H{charnames} = \&charnames ; ## @@ -272,7 +270,7 @@ sub viacode # checking the length first is slightly faster if (length($hex) > 5 && hex($hex) > 0x10FFFF) { - carp sprintf "Unicode characters only allocated up to U+10FFFF (you asked for U+%X)", $hex; + carp "Unicode characters only allocated up to U+10FFFF (you asked for U+$hex)"; return; } @@ -393,10 +391,8 @@ hardwired into F. A module can install custom translations (inside the scope which Cs the module) with the following magic incantation: - use charnames (); # for $charnames::hint_bits sub import { shift; - $^H |= $charnames::hint_bits; $^H{charnames} = \&translator; }