Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.217.1.165
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
perl5 /
pod /
Delete
Unzip
Name
Size
Permission
Date
Action
perl.pod
15.89
KB
-rw-r--r--
2023-05-18 21:34
perl5004delta.pod
54.92
KB
-rw-r--r--
2023-05-18 21:34
perl5005delta.pod
33.48
KB
-rw-r--r--
2023-05-18 21:34
perl5100delta.pod
54.23
KB
-rw-r--r--
2023-05-18 21:34
perl5101delta.pod
42.86
KB
-rw-r--r--
2023-05-18 21:34
perl5120delta.pod
87.18
KB
-rw-r--r--
2023-05-18 21:34
perl5121delta.pod
9.9
KB
-rw-r--r--
2023-05-18 21:34
perl5122delta.pod
9.38
KB
-rw-r--r--
2023-05-18 21:34
perl5123delta.pod
4
KB
-rw-r--r--
2023-05-18 21:34
perl5124delta.pod
3.59
KB
-rw-r--r--
2023-05-18 21:34
perl5125delta.pod
7.5
KB
-rw-r--r--
2023-05-18 21:34
perl5140delta.pod
140.94
KB
-rw-r--r--
2023-05-18 21:34
perl5141delta.pod
7.78
KB
-rw-r--r--
2023-05-18 21:34
perl5142delta.pod
6.73
KB
-rw-r--r--
2023-05-18 21:34
perl5143delta.pod
7.58
KB
-rw-r--r--
2023-05-18 21:34
perl5144delta.pod
6.18
KB
-rw-r--r--
2023-05-18 21:34
perl5160delta.pod
130.52
KB
-rw-r--r--
2023-05-18 21:34
perl5161delta.pod
6
KB
-rw-r--r--
2023-05-18 21:34
perl5162delta.pod
3.51
KB
-rw-r--r--
2023-05-18 21:34
perl5163delta.pod
3.99
KB
-rw-r--r--
2023-05-18 21:34
perl5180delta.pod
116.63
KB
-rw-r--r--
2023-05-18 21:34
perl5181delta.pod
6.44
KB
-rw-r--r--
2023-05-18 21:34
perl5182delta.pod
5.21
KB
-rw-r--r--
2023-05-18 21:34
perl5184delta.pod
4.53
KB
-rw-r--r--
2023-05-18 21:34
perl5200delta.pod
112.99
KB
-rw-r--r--
2023-05-18 21:34
perl5201delta.pod
10.64
KB
-rw-r--r--
2023-05-18 21:34
perl5202delta.pod
12.22
KB
-rw-r--r--
2023-05-18 21:34
perl5203delta.pod
9.17
KB
-rw-r--r--
2023-05-18 21:34
perl5220delta.pod
127.89
KB
-rw-r--r--
2023-05-18 21:34
perl5221delta.pod
10.51
KB
-rw-r--r--
2023-05-18 21:34
perl5222delta.pod
12.33
KB
-rw-r--r--
2023-05-18 21:34
perl5223delta.pod
8.26
KB
-rw-r--r--
2023-05-18 21:34
perl5224delta.pod
4.36
KB
-rw-r--r--
2023-05-18 21:34
perl5240delta.pod
63.41
KB
-rw-r--r--
2023-05-18 21:34
perl5241delta.pod
8.02
KB
-rw-r--r--
2023-05-18 21:34
perl5242delta.pod
4.02
KB
-rw-r--r--
2023-05-18 21:34
perl5243delta.pod
11.16
KB
-rw-r--r--
2023-05-18 21:34
perl5244delta.pod
4.4
KB
-rw-r--r--
2023-05-18 21:34
perl5260delta.pod
99.45
KB
-rw-r--r--
2023-05-18 21:34
perl5261delta.pod
7.74
KB
-rw-r--r--
2023-05-18 21:34
perl5262delta.pod
7.7
KB
-rw-r--r--
2023-05-18 21:34
perl5263delta.pod
6.9
KB
-rw-r--r--
2023-05-18 21:34
perl5280delta.pod
70.42
KB
-rw-r--r--
2023-05-18 21:34
perl561delta.pod
121.79
KB
-rw-r--r--
2023-05-18 21:34
perl56delta.pod
104.69
KB
-rw-r--r--
2023-05-18 21:34
perl581delta.pod
37.17
KB
-rw-r--r--
2023-05-18 21:34
perl582delta.pod
4.37
KB
-rw-r--r--
2023-05-18 21:34
perl583delta.pod
6.19
KB
-rw-r--r--
2023-05-18 21:34
perl584delta.pod
7.19
KB
-rw-r--r--
2023-05-18 21:34
perl585delta.pod
5.75
KB
-rw-r--r--
2023-05-18 21:34
perl586delta.pod
4.54
KB
-rw-r--r--
2023-05-18 21:34
perl587delta.pod
8.16
KB
-rw-r--r--
2023-05-18 21:34
perl588delta.pod
24.68
KB
-rw-r--r--
2023-05-18 21:34
perl589delta.pod
52.64
KB
-rw-r--r--
2023-05-18 21:34
perl58delta.pod
112.47
KB
-rw-r--r--
2023-05-18 21:34
perlaix.pod
19.96
KB
-rw-r--r--
2023-05-18 21:34
perlamiga.pod
5.61
KB
-rw-r--r--
2023-05-18 21:34
perlandroid.pod
7.69
KB
-rw-r--r--
2023-05-18 21:34
perlapi.pod
433.14
KB
-rw-r--r--
2023-05-18 21:34
perlapio.pod
18.83
KB
-rw-r--r--
2023-05-18 21:34
perlartistic.pod
6.85
KB
-rw-r--r--
2023-05-18 21:34
perlbook.pod
8.14
KB
-rw-r--r--
2023-05-18 21:34
perlboot.pod
294
B
-rw-r--r--
2023-05-18 21:34
perlbot.pod
304
B
-rw-r--r--
2023-05-18 21:34
perlbs2000.pod
7.87
KB
-rw-r--r--
2023-05-18 21:34
perlcall.pod
55.38
KB
-rw-r--r--
2023-05-18 21:34
perlce.pod
14.26
KB
-rw-r--r--
2023-05-18 21:34
perlcheat.pod
4.38
KB
-rw-r--r--
2023-05-18 21:34
perlclib.pod
9.39
KB
-rw-r--r--
2023-05-18 21:34
perlcn.pod
4.58
KB
-rw-r--r--
2023-05-18 21:34
perlcommunity.pod
7.05
KB
-rw-r--r--
2023-05-18 21:34
perlcygwin.pod
26.56
KB
-rw-r--r--
2023-05-18 21:34
perldata.pod
45.65
KB
-rw-r--r--
2023-05-18 21:34
perldbmfilter.pod
4.86
KB
-rw-r--r--
2023-05-18 21:34
perldebguts.pod
37.63
KB
-rw-r--r--
2023-05-18 21:34
perldebtut.pod
21.63
KB
-rw-r--r--
2023-05-18 21:34
perldebug.pod
38.34
KB
-rw-r--r--
2023-05-18 21:34
perldelta.pod
6.9
KB
-rw-r--r--
2023-05-18 21:34
perldeprecation.pod
17.74
KB
-rw-r--r--
2023-05-18 21:34
perldiag.pod
277.9
KB
-rw-r--r--
2023-05-18 21:34
perldos.pod
10.28
KB
-rw-r--r--
2023-05-18 21:34
perldsc.pod
25.01
KB
-rw-r--r--
2023-05-18 21:34
perldtrace.pod
7.77
KB
-rw-r--r--
2023-05-18 21:34
perlebcdic.pod
82.26
KB
-rw-r--r--
2023-05-18 21:34
perlembed.pod
36.32
KB
-rw-r--r--
2023-05-18 21:34
perlexperiment.pod
7.03
KB
-rw-r--r--
2023-05-18 21:34
perlfork.pod
13.04
KB
-rw-r--r--
2023-05-18 21:34
perlform.pod
16.22
KB
-rw-r--r--
2023-05-18 21:34
perlfreebsd.pod
1.57
KB
-rw-r--r--
2023-05-18 21:34
perlfunc.pod
383.75
KB
-rw-r--r--
2023-05-18 21:34
perlgit.pod
32.72
KB
-rw-r--r--
2023-05-18 21:34
perlgpl.pod
13.49
KB
-rw-r--r--
2023-05-18 21:34
perlguts.pod
136.06
KB
-rw-r--r--
2023-05-18 21:34
perlhack.pod
39.5
KB
-rw-r--r--
2023-05-18 21:34
perlhacktips.pod
54.21
KB
-rw-r--r--
2023-05-18 21:34
perlhacktut.pod
6.01
KB
-rw-r--r--
2023-05-18 21:34
perlhaiku.pod
1.47
KB
-rw-r--r--
2023-05-18 21:34
perlhist.pod
52.29
KB
-rw-r--r--
2023-05-18 21:34
perlhpux.pod
29.79
KB
-rw-r--r--
2023-05-18 21:34
perlhurd.pod
1.95
KB
-rw-r--r--
2023-05-18 21:34
perlintern.pod
53.29
KB
-rw-r--r--
2023-05-18 21:34
perlinterp.pod
32.9
KB
-rw-r--r--
2023-05-18 21:34
perlintro.pod
21.6
KB
-rw-r--r--
2023-05-18 21:34
perliol.pod
33.38
KB
-rw-r--r--
2023-05-18 21:34
perlipc.pod
69.17
KB
-rw-r--r--
2023-05-18 21:34
perlirix.pod
4.29
KB
-rw-r--r--
2023-05-18 21:34
perljp.pod
7.34
KB
-rw-r--r--
2023-05-18 21:34
perlko.pod
11.97
KB
-rw-r--r--
2023-05-18 21:34
perllexwarn.pod
355
B
-rw-r--r--
2023-05-18 21:34
perllinux.pod
1.45
KB
-rw-r--r--
2023-05-18 21:34
perllocale.pod
67.07
KB
-rw-r--r--
2023-05-18 21:34
perllol.pod
9.36
KB
-rw-r--r--
2023-05-18 21:34
perlmacos.pod
1001
B
-rw-r--r--
2023-05-18 21:34
perlmacosx.pod
11.78
KB
-rw-r--r--
2023-05-18 21:34
perlmod.pod
25.63
KB
-rw-r--r--
2023-05-18 21:34
perlmodinstall.pod
12.49
KB
-rw-r--r--
2023-05-18 21:34
perlmodlib.pod
74.69
KB
-rw-r--r--
2023-05-18 21:34
perlmodstyle.pod
22.05
KB
-rw-r--r--
2023-05-18 21:34
perlmroapi.pod
3.14
KB
-rw-r--r--
2023-05-18 21:34
perlnetware.pod
6.49
KB
-rw-r--r--
2023-05-18 21:34
perlnewmod.pod
10.78
KB
-rw-r--r--
2023-05-18 21:34
perlnumber.pod
8.16
KB
-rw-r--r--
2023-05-18 21:34
perlobj.pod
34.7
KB
-rw-r--r--
2023-05-18 21:34
perlootut.pod
26.16
KB
-rw-r--r--
2023-05-18 21:34
perlop.pod
133.06
KB
-rw-r--r--
2023-05-18 21:34
perlopenbsd.pod
1.18
KB
-rw-r--r--
2023-05-18 21:34
perlopentut.pod
9.23
KB
-rw-r--r--
2023-05-18 21:34
perlos2.pod
91.16
KB
-rw-r--r--
2023-05-18 21:34
perlos390.pod
15.31
KB
-rw-r--r--
2023-05-18 21:34
perlos400.pod
4.66
KB
-rw-r--r--
2023-05-18 21:34
perlpacktut.pod
50.08
KB
-rw-r--r--
2023-05-18 21:34
perlperf.pod
48.71
KB
-rw-r--r--
2023-05-18 21:34
perlplan9.pod
5
KB
-rw-r--r--
2023-05-18 21:34
perlpod.pod
21.68
KB
-rw-r--r--
2023-05-18 21:34
perlpodspec.pod
66.87
KB
-rw-r--r--
2023-05-18 21:34
perlpolicy.pod
25.03
KB
-rw-r--r--
2023-05-18 21:34
perlport.pod
85.55
KB
-rw-r--r--
2023-05-18 21:34
perlpragma.pod
5.05
KB
-rw-r--r--
2023-05-18 21:34
perlqnx.pod
6.52
KB
-rw-r--r--
2023-05-18 21:34
perlre.pod
118.07
KB
-rw-r--r--
2023-05-18 21:34
perlreapi.pod
29.62
KB
-rw-r--r--
2023-05-18 21:34
perlrebackslash.pod
31.07
KB
-rw-r--r--
2023-05-18 21:34
perlrecharclass.pod
47.88
KB
-rw-r--r--
2023-05-18 21:34
perlref.pod
34.48
KB
-rw-r--r--
2023-05-18 21:34
perlreftut.pod
18.35
KB
-rw-r--r--
2023-05-18 21:34
perlreguts.pod
37.43
KB
-rw-r--r--
2023-05-18 21:34
perlrepository.pod
509
B
-rw-r--r--
2023-05-18 21:34
perlrequick.pod
18.06
KB
-rw-r--r--
2023-05-18 21:34
perlreref.pod
14.4
KB
-rw-r--r--
2023-05-18 21:34
perlretut.pod
118.42
KB
-rw-r--r--
2023-05-18 21:34
perlriscos.pod
1.49
KB
-rw-r--r--
2023-05-18 21:34
perlrun.pod
52.29
KB
-rw-r--r--
2023-05-18 21:34
perlsec.pod
25.57
KB
-rw-r--r--
2023-05-18 21:34
perlsolaris.pod
29.12
KB
-rw-r--r--
2023-05-18 21:34
perlsource.pod
6.71
KB
-rw-r--r--
2023-05-18 21:34
perlstyle.pod
8.43
KB
-rw-r--r--
2023-05-18 21:34
perlsub.pod
71.26
KB
-rw-r--r--
2023-05-18 21:34
perlsymbian.pod
15
KB
-rw-r--r--
2023-05-18 21:34
perlsyn.pod
43.47
KB
-rw-r--r--
2023-05-18 21:34
perlsynology.pod
7.6
KB
-rw-r--r--
2023-05-18 21:34
perlthrtut.pod
45.37
KB
-rw-r--r--
2023-05-18 21:34
perltie.pod
37.7
KB
-rw-r--r--
2023-05-18 21:34
perltoc.pod
677.89
KB
-rw-r--r--
2023-05-18 21:34
perltodo.pod
376
B
-rw-r--r--
2023-05-18 21:34
perltooc.pod
294
B
-rw-r--r--
2023-05-18 21:34
perltoot.pod
294
B
-rw-r--r--
2023-05-18 21:34
perltrap.pod
10.37
KB
-rw-r--r--
2023-05-18 21:34
perltru64.pod
8.29
KB
-rw-r--r--
2023-05-18 21:34
perltw.pod
4.37
KB
-rw-r--r--
2023-05-18 21:34
perlunicode.pod
80.56
KB
-rw-r--r--
2023-05-18 21:34
perlunicook.pod
24.89
KB
-rw-r--r--
2023-05-18 21:34
perlunifaq.pod
13.33
KB
-rw-r--r--
2023-05-18 21:34
perluniintro.pod
37.44
KB
-rw-r--r--
2023-05-18 21:34
perluniprops.pod
278.62
KB
-rw-r--r--
2023-05-18 21:34
perlunitut.pod
7.76
KB
-rw-r--r--
2023-05-18 21:34
perlutil.pod
7.46
KB
-rw-r--r--
2023-05-18 21:36
perlvar.pod
76.53
KB
-rw-r--r--
2023-05-18 21:34
perlvms.pod
49.63
KB
-rw-r--r--
2023-05-18 21:34
perlvos.pod
3.75
KB
-rw-r--r--
2023-05-18 21:34
perlwin32.pod
38.38
KB
-rw-r--r--
2023-05-18 21:34
perlxs.pod
77.07
KB
-rw-r--r--
2023-05-18 21:34
perlxstut.pod
48.92
KB
-rw-r--r--
2023-05-18 21:34
perlxstypemap.pod
23.44
KB
-rw-r--r--
2023-05-18 21:34
Save
Rename
=head1 NAME perlnumber - semantics of numbers and numeric operations in Perl =head1 SYNOPSIS $n = 1234; # decimal integer $n = 0b1110011; # binary integer $n = 01234; # octal integer $n = 0x1234; # hexadecimal integer $n = 12.34e-56; # exponential notation $n = "-12.34e56"; # number specified as a string $n = "1234"; # number specified as a string =head1 DESCRIPTION This document describes how Perl internally handles numeric values. Perl's operator overloading facility is completely ignored here. Operator overloading allows user-defined behaviors for numbers, such as operations over arbitrarily large integers, floating points numbers with arbitrary precision, operations over "exotic" numbers such as modular arithmetic or p-adic arithmetic, and so on. See L<overload> for details. =head1 Storing numbers Perl can internally represent numbers in 3 different ways: as native integers, as native floating point numbers, and as decimal strings. Decimal strings may have an exponential notation part, as in C<"12.34e-56">. I<Native> here means "a format supported by the C compiler which was used to build perl". The term "native" does not mean quite as much when we talk about native integers, as it does when native floating point numbers are involved. The only implication of the term "native" on integers is that the limits for the maximal and the minimal supported true integral quantities are close to powers of 2. However, "native" floats have a most fundamental restriction: they may represent only those numbers which have a relatively "short" representation when converted to a binary fraction. For example, 0.9 cannot be represented by a native float, since the binary fraction for 0.9 is infinite: binary0.1110011001100... with the sequence C<1100> repeating again and again. In addition to this limitation, the exponent of the binary number is also restricted when it is represented as a floating point number. On typical hardware, floating point values can store numbers with up to 53 binary digits, and with binary exponents between -1024 and 1024. In decimal representation this is close to 16 decimal digits and decimal exponents in the range of -304..304. The upshot of all this is that Perl cannot store a number like 12345678901234567 as a floating point number on such architectures without loss of information. Similarly, decimal strings can represent only those numbers which have a finite decimal expansion. Being strings, and thus of arbitrary length, there is no practical limit for the exponent or number of decimal digits for these numbers. (But realize that what we are discussing the rules for just the I<storage> of these numbers. The fact that you can store such "large" numbers does not mean that the I<operations> over these numbers will use all of the significant digits. See L</"Numeric operators and numeric conversions"> for details.) In fact numbers stored in the native integer format may be stored either in the signed native form, or in the unsigned native form. Thus the limits for Perl numbers stored as native integers would typically be -2**31..2**32-1, with appropriate modifications in the case of 64-bit integers. Again, this does not mean that Perl can do operations only over integers in this range: it is possible to store many more integers in floating point format. Summing up, Perl numeric values can store only those numbers which have a finite decimal expansion or a "short" binary expansion. =head1 Numeric operators and numeric conversions As mentioned earlier, Perl can store a number in any one of three formats, but most operators typically understand only one of those formats. When a numeric value is passed as an argument to such an operator, it will be converted to the format understood by the operator. Six such conversions are possible: native integer --> native floating point (*) native integer --> decimal string native floating_point --> native integer (*) native floating_point --> decimal string (*) decimal string --> native integer decimal string --> native floating point (*) These conversions are governed by the following general rules: =over 4 =item * If the source number can be represented in the target form, that representation is used. =item * If the source number is outside of the limits representable in the target form, a representation of the closest limit is used. (I<Loss of information>) =item * If the source number is between two numbers representable in the target form, a representation of one of these numbers is used. (I<Loss of information>) =item * In C<< native floating point --> native integer >> conversions the magnitude of the result is less than or equal to the magnitude of the source. (I<"Rounding to zero".>) =item * If the C<< decimal string --> native integer >> conversion cannot be done without loss of information, the result is compatible with the conversion sequence C<< decimal_string --> native_floating_point --> native_integer >>. In particular, rounding is strongly biased to 0, though a number like C<"0.99999999999999999999"> has a chance of being rounded to 1. =back B<RESTRICTION>: The conversions marked with C<(*)> above involve steps performed by the C compiler. In particular, bugs/features of the compiler used may lead to breakage of some of the above rules. =head1 Flavors of Perl numeric operations Perl operations which take a numeric argument treat that argument in one of four different ways: they may force it to one of the integer/floating/ string formats, or they may behave differently depending on the format of the operand. Forcing a numeric value to a particular format does not change the number stored in the value. All the operators which need an argument in the integer format treat the argument as in modular arithmetic, e.g., C<mod 2**32> on a 32-bit architecture. C<sprintf "%u", -1> therefore provides the same result as C<sprintf "%u", ~0>. =over 4 =item Arithmetic operators The binary operators C<+> C<-> C<*> C</> C<%> C<==> C<!=> C<E<gt>> C<E<lt>> C<E<gt>=> C<E<lt>=> and the unary operators C<-> C<abs> and C<--> will attempt to convert arguments to integers. If both conversions are possible without loss of precision, and the operation can be performed without loss of precision then the integer result is used. Otherwise arguments are converted to floating point format and the floating point result is used. The caching of conversions (as described above) means that the integer conversion does not throw away fractional parts on floating point numbers. =item ++ C<++> behaves as the other operators above, except that if it is a string matching the format C</^[a-zA-Z]*[0-9]*\z/> the string increment described in L<perlop> is used. =item Arithmetic operators during C<use integer> In scopes where C<use integer;> is in force, nearly all the operators listed above will force their argument(s) into integer format, and return an integer result. The exceptions, C<abs>, C<++> and C<-->, do not change their behavior with C<use integer;> =item Other mathematical operators Operators such as C<**>, C<sin> and C<exp> force arguments to floating point format. =item Bitwise operators Arguments are forced into the integer format if not strings. =item Bitwise operators during C<use integer> forces arguments to integer format. Also shift operations internally use signed integers rather than the default unsigned. =item Operators which expect an integer force the argument into the integer format. This is applicable to the third and fourth arguments of C<sysread>, for example. =item Operators which expect a string force the argument into the string format. For example, this is applicable to C<printf "%s", $value>. =back Though forcing an argument into a particular form does not change the stored number, Perl remembers the result of such conversions. In particular, though the first such conversion may be time-consuming, repeated operations will not need to redo the conversion. =head1 AUTHOR Ilya Zakharevich C<ilya@math.ohio-state.edu> Editorial adjustments by Gurusamy Sarathy <gsar@ActiveState.com> Updates for 5.8.0 by Nicholas Clark <nick@ccl4.org> =head1 SEE ALSO L<overload>, L<perlop>