summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-22 07:35:47 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-22 07:35:47 +0000
commite526c9e6a142067a8efdc8a9f757505ff724adb1 (patch)
tree615abd3eebc1c145b060686eb750300deba93ae6 /t
parentdbe7b1772b1a5593767d19db4bfee18f47979155 (diff)
downloadperl-e526c9e6a142067a8efdc8a9f757505ff724adb1.tar.gz
allow C<print v10>, $h{v13.10} etc.
p4raw-id: //depot/perl@5191
Diffstat (limited to 't')
-rwxr-xr-xt/op/ver.t21
1 files changed, 20 insertions, 1 deletions
diff --git a/t/op/ver.t b/t/op/ver.t
index 93ad1f38b8..206b1d08f8 100755
--- a/t/op/ver.t
+++ b/t/op/ver.t
@@ -5,7 +5,7 @@ BEGIN {
unshift @INC, "../lib";
}
-print "1..14\n";
+print "1..18\n";
my $test = 1;
@@ -13,6 +13,25 @@ use v5.5.640;
require v5.5.640;
print "ok $test\n"; ++$test;
+# printing characters should work
+print v111;
+print v107.32;
+print "$test\n"; ++$test;
+
+# hash keys too
+$h{v111.107} = "ok";
+print "$h{ok} $test\n"; ++$test;
+
+# poetry optimization should also
+sub v77 { "ok" }
+$x = v77;
+print "$x $test\n"; ++$test;
+
+# but not when dots are involved
+$x = v77.78.79;
+print "not " unless $x eq "MNO";
+print "ok $test\n"; ++$test;
+
print "not " unless v1.20.300.4000 eq "\x{1}\x{14}\x{12c}\x{fa0}";
print "ok $test\n"; ++$test;