diff options
Diffstat (limited to 'lib/byte.pm')
-rw-r--r-- | lib/byte.pm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/byte.pm b/lib/byte.pm new file mode 100644 index 0000000000..cc23b40f4f --- /dev/null +++ b/lib/byte.pm @@ -0,0 +1,33 @@ +package byte; + +sub import { + $^H |= 0x00000010; +} + +sub unimport { + $^H &= ~0x00000010; +} + +sub AUTOLOAD { + require "byte_heavy.pl"; + goto &$AUTOLOAD; +} + +sub length ($); + +1; +__END__ + +=head1 NAME + +byte - Perl pragma to turn force treating strings as bytes not UNICODE + +=head1 SYNOPSIS + + use byte; + no byte; + +=head1 DESCRIPTION + + +=cut |