summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-03-17 23:41:36 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-03-17 23:41:36 +0000
commit511793cf52cf9611e8513a83d63ed3e5fe4d0e53 (patch)
tree6581a3930a0fb9e716779365b90b62d5a6a36317 /pod
parentf46deeb45660292d3b9843caf0b460ff2711b2e5 (diff)
parent4c5e2b0d1b6942d8cf00bbe564b28e490a1b7b83 (diff)
downloadperl-511793cf52cf9611e8513a83d63ed3e5fe4d0e53.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@5790
Diffstat (limited to 'pod')
-rw-r--r--pod/perldata.pod9
1 files changed, 7 insertions, 2 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod
index 6ffd38c817..3e10e6f3d4 100644
--- a/pod/perldata.pod
+++ b/pod/perldata.pod
@@ -275,7 +275,6 @@ integer formats:
0xff # hex
0377 # octal
0b011011 # binary
- v102.111.111 # string (made of characters "f", "o", "o")
String literals are usually delimited by either single or double
quotes. They work much like quotes in the standard Unix shells:
@@ -332,7 +331,13 @@ readable interpolation form C<"\x{1}\x{14}\x{12c}\x{fa0}">. This is useful
for representing Unicode strings, and for comparing version "numbers"
using the string comparison operators, C<cmp>, C<gt>, C<lt> etc.
If there are two or more dots in the literal, the leading C<v> may be
-omitted. Such literals are accepted by both C<require> and C<use> for
+omitted.
+
+ print v9786; # prints UTF-8 encoded SMILEY, "\x{263a}"
+ print v102.111.111; # prints "foo"
+ print 102.111.111; # same
+
+Such literals are accepted by both C<require> and C<use> for
doing a version check. The C<$^V> special variable also contains the
running Perl interpreter's version in this form. See L<perlvar/$^V>.