source: trunk/third/perl/lib/bytes.pm @ 14545

Revision 14545, 1.0 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r14544, which included commits to RCS files with non-trunk default branches.
Line 
1package bytes;
2
3$bytes::hint_bits = 0x00000008;
4
5sub import {
6    $^H |= $bytes::hint_bits;
7}
8
9sub unimport {
10    $^H &= ~$bytes::hint_bits;
11}
12
13sub AUTOLOAD {
14    require "bytes_heavy.pl";
15    goto &$AUTOLOAD;
16}
17
18sub length ($);
19
201;
21__END__
22
23=head1 NAME
24
25bytes - Perl pragma to force byte semantics rather than character semantics
26
27=head1 SYNOPSIS
28
29    use bytes;
30    no bytes;
31
32=head1 DESCRIPTION
33
34WARNING: The implementation of Unicode support in Perl is incomplete.
35See L<perlunicode> for the exact details.
36
37The C<use bytes> pragma disables character semantics for the rest of the
38lexical scope in which it appears.  C<no bytes> can be used to reverse
39the effect of C<use bytes> within the current lexical scope.
40
41Perl normally assumes character semantics in the presence of
42character data (i.e. data that has come from a source that has
43been marked as being of a particular character encoding).
44
45To understand the implications and differences between character
46semantics and byte semantics, see L<perlunicode>.
47
48=head1 SEE ALSO
49
50L<perlunicode>, L<utf8>
51
52=cut
Note: See TracBrowser for help on using the repository browser.