diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1999-09-18 15:24:56 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1999-09-18 15:24:56 +0000 |
commit | 5bc28da93666e223bb56098f72517273bc8bcbf9 (patch) | |
tree | 7d22513e3a5c748ae133aebaa0687ba6f344518d /lib/byte.pm | |
parent | 53e9df65959190f4cd34a02fe359bc5e6d2553f6 (diff) | |
download | perl-5bc28da93666e223bb56098f72517273bc8bcbf9.tar.gz |
Re-integrate mainline
Basic SvUTF8 stuff in headers, no functional changes yet.
p4raw-id: //depot/utfperl@4193
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 |