X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlop.pod;h=d9327046665063c270998a6a2f39f56431a64779;hb=bed171dfce7f6c0bdb7207be32c058f4d36fc432;hp=150813e711557da46b5859af57ea902c00d505ea;hpb=0b8d69e96040ec811c067522a2d9770121123a35;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlop.pod b/pod/perlop.pod index 150813e..d932704 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -1804,14 +1804,15 @@ in a bit vector. =head2 Version tuples -A version number of the form C is parsed as a dual-valued literal. -It has the string value of C<"\x{1}\x{2}\x{3}\x{4}"> (i.e., a utf8 string) -and a numeric value of C<1 + 2/1000 + 3/1000000 + 4/1000000000>. This is -useful for representing and comparing version numbers. - -Version tuples are accepted by both C and C. The C<$^V> variable -contains the running Perl interpreter's version in this format. -See L. +A literal of the form C is parsed as a dual-valued quantity. +It has the string value of C<"\x{1}\x{14}\x{12c}\x{fa0}"> (i.e., a UTF-8 +string) and a numeric value of C<1 + 20/1000 + 300/1000000 + 4000/1000000000>. +This is useful for representing Unicode strings, and for comparing version +numbers using the string comparison operators, C, C, C etc. + +Such "version tuples" or "vectors" are accepted by both C and +C. The C<$^V> variable contains the running Perl interpreter's +version in this format. See L. =head2 Integer Arithmetic