golden hour
/usr/share/perl5
⬆️ Go Up
Upload
File/Folder
Size
Actions
AnyDBM_File.pm
2.56 KB
Del
OK
App
-
Del
OK
Archive
-
Del
OK
Attribute
-
Del
OK
AutoLoader.pm
14.66 KB
Del
OK
AutoSplit.pm
19.18 KB
Del
OK
B
-
Del
OK
Benchmark.pm
27.87 KB
Del
OK
CORE.pod
2.7 KB
Del
OK
CPAN
-
Del
OK
CPAN.pm
132.91 KB
Del
OK
Class
-
Del
OK
Compress
-
Del
OK
Config
-
Del
OK
DB.pm
18.43 KB
Del
OK
DBM_Filter
-
Del
OK
DBM_Filter.pm
14.06 KB
Del
OK
Devel
-
Del
OK
DirHandle.pm
1.52 KB
Del
OK
Dumpvalue.pm
16.5 KB
Del
OK
Encode
-
Del
OK
English.pm
4.34 KB
Del
OK
ExtUtils
-
Del
OK
File
-
Del
OK
FileCache.pm
5.44 KB
Del
OK
FileHandle.pm
6.62 KB
Del
OK
Filter
-
Del
OK
FindBin.pm
4.45 KB
Del
OK
Getopt
-
Del
OK
HTTP
-
Del
OK
I18N
-
Del
OK
IO
-
Del
OK
IPC
-
Del
OK
JSON
-
Del
OK
LWP
-
Del
OK
LWP.pm
21.15 KB
Del
OK
Locale
-
Del
OK
Log
-
Del
OK
Math
-
Del
OK
Memoize
-
Del
OK
Memoize.pm
34.4 KB
Del
OK
Module
-
Del
OK
NEXT.pm
18.05 KB
Del
OK
Net
-
Del
OK
Object
-
Del
OK
Package
-
Del
OK
Perl
-
Del
OK
PerlIO
-
Del
OK
PerlIO.pm
10.19 KB
Del
OK
Pod
-
Del
OK
Safe.pm
24.03 KB
Del
OK
Search
-
Del
OK
SelectSaver.pm
1.05 KB
Del
OK
SelfLoader.pm
16.97 KB
Del
OK
Symbol.pm
4.68 KB
Del
OK
Term
-
Del
OK
Test
-
Del
OK
Test.pm
28.13 KB
Del
OK
Text
-
Del
OK
Thread
-
Del
OK
Thread.pm
8.09 KB
Del
OK
Tie
-
Del
OK
Time
-
Del
OK
UNIVERSAL.pm
6.97 KB
Del
OK
URI
-
Del
OK
URI.pm
33.01 KB
Del
OK
Unicode
-
Del
OK
User
-
Del
OK
Version
-
Del
OK
XSLoader.pm
9.99 KB
Del
OK
_charnames.pm
29.8 KB
Del
OK
autouse.pm
4.14 KB
Del
OK
base.pm
6.37 KB
Del
OK
bigint.pm
17.44 KB
Del
OK
bignum.pm
18.23 KB
Del
OK
bigrat.pm
14.11 KB
Del
OK
blib.pm
2.04 KB
Del
OK
bytes.pm
2.96 KB
Del
OK
bytes_heavy.pl
758 B
Del
OK
charnames.pm
19.22 KB
Del
OK
deprecate.pm
3.01 KB
Del
OK
diagnostics.pm
17.96 KB
Del
OK
dumpvar.pl
14.96 KB
Del
OK
encoding
-
Del
OK
feature.pm
11.06 KB
Del
OK
fields.pm
9.28 KB
Del
OK
filetest.pm
3.91 KB
Del
OK
if.pm
1.13 KB
Del
OK
integer.pm
3.19 KB
Del
OK
less.pm
3.13 KB
Del
OK
locale.pm
2.72 KB
Del
OK
lwpcook.pod
9.05 KB
Del
OK
lwptut.pod
24.89 KB
Del
OK
open.pm
7.83 KB
Del
OK
overload
-
Del
OK
overload.pm
52.66 KB
Del
OK
overloading.pm
1.77 KB
Del
OK
perl5db.pl
302.79 KB
Del
OK
perlfaq.pm
94 B
Del
OK
pod
-
Del
OK
sigtrap.pm
7.46 KB
Del
OK
sort.pm
5.95 KB
Del
OK
strict.pm
3.84 KB
Del
OK
subs.pm
845 B
Del
OK
unicore
-
Del
OK
utf8.pm
7.6 KB
Del
OK
utf8_heavy.pl
30.1 KB
Del
OK
vars.pm
2.3 KB
Del
OK
vendor_perl
-
Del
OK
vmsish.pm
4.22 KB
Del
OK
warnings
-
Del
OK
warnings.pm
18.34 KB
Del
OK
Edit: bytes.pm
package bytes; our $VERSION = '1.04'; $bytes::hint_bits = 0x00000008; sub import { $^H |= $bytes::hint_bits; } sub unimport { $^H &= ~$bytes::hint_bits; } sub AUTOLOAD { require "bytes_heavy.pl"; goto &$AUTOLOAD if defined &$AUTOLOAD; require Carp; Carp::croak("Undefined subroutine $AUTOLOAD called"); } sub length (_); sub chr (_); sub ord (_); sub substr ($$;$$); sub index ($$;$); sub rindex ($$;$); 1; __END__ =head1 NAME bytes - Perl pragma to force byte semantics rather than character semantics =head1 NOTICE This pragma reflects early attempts to incorporate Unicode into perl and has since been superseded. It breaks encapsulation (i.e. it exposes the innards of how the perl executable currently happens to store a string), and use of this module for anything other than debugging purposes is strongly discouraged. If you feel that the functions here within might be useful for your application, this possibly indicates a mismatch between your mental model of Perl Unicode and the current reality. In that case, you may wish to read some of the perl Unicode documentation: L<perluniintro>, L<perlunitut>, L<perlunifaq> and L<perlunicode>. =head1 SYNOPSIS use bytes; ... chr(...); # or bytes::chr ... index(...); # or bytes::index ... length(...); # or bytes::length ... ord(...); # or bytes::ord ... rindex(...); # or bytes::rindex ... substr(...); # or bytes::substr no bytes; =head1 DESCRIPTION The C<use bytes> pragma disables character semantics for the rest of the lexical scope in which it appears. C<no bytes> can be used to reverse the effect of C<use bytes> within the current lexical scope. Perl normally assumes character semantics in the presence of character data (i.e. data that has come from a source that has been marked as being of a particular character encoding). When C<use bytes> is in effect, the encoding is temporarily ignored, and each string is treated as a series of bytes. As an example, when Perl sees C<$x = chr(400)>, it encodes the character in UTF-8 and stores it in $x. Then it is marked as character data, so, for instance, C<length $x> returns C<1>. However, in the scope of the C<bytes> pragma, $x is treated as a series of bytes - the bytes that make up the UTF8 encoding - and C<length $x> returns C<2>: $x = chr(400); print "Length is ", length $x, "\n"; # "Length is 1" printf "Contents are %vd\n", $x; # "Contents are 400" { use bytes; # or "require bytes; bytes::length()" print "Length is ", length $x, "\n"; # "Length is 2" printf "Contents are %vd\n", $x; # "Contents are 198.144" } chr(), ord(), substr(), index() and rindex() behave similarly. For more on the implications and differences between character semantics and byte semantics, see L<perluniintro> and L<perlunicode>. =head1 LIMITATIONS bytes::substr() does not work as an lvalue(). =head1 SEE ALSO L<perluniintro>, L<perlunicode>, L<utf8> =cut
Save