Rashed Abdel-Tawab | 4db47f4 | 2019-09-06 10:38:22 -0700 | [diff] [blame] | 1 | package utf8; |
2 | |||||
3 | $utf8::hint_bits = 0x00800000; | ||||
4 | |||||
5 | our $VERSION = '1.19'; | ||||
6 | |||||
7 | sub import { | ||||
8 | $^H |= $utf8::hint_bits; | ||||
9 | } | ||||
10 | |||||
11 | sub unimport { | ||||
12 | $^H &= ~$utf8::hint_bits; | ||||
13 | } | ||||
14 | |||||
15 | sub AUTOLOAD { | ||||
16 | require "utf8_heavy.pl"; | ||||
17 | goto &$AUTOLOAD if defined &$AUTOLOAD; | ||||
18 | require Carp; | ||||
19 | Carp::croak("Undefined subroutine $AUTOLOAD called"); | ||||
20 | } | ||||
21 | |||||
22 | 1; | ||||
23 | __END__ | ||||
24 |