summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-18 04:14:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-18 04:14:25 +0000
commit08cd7fd68a37c0884dd1698ef154f2d6583874ef (patch)
tree3d15f2b0d778ae668985c6a4b0217327228900b3 /t
parent3ca7705ebd432c2fb3599731fec8760f14fddd0f (diff)
downloadperl-08cd7fd68a37c0884dd1698ef154f2d6583874ef.tar.gz
Make use vars grok UTF-8.
p4raw-id: //depot/perl@16670
Diffstat (limited to 't')
-rw-r--r--t/run/fresh_perl.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/run/fresh_perl.t b/t/run/fresh_perl.t
index 1f8c5ce860..3c0a9259ad 100644
--- a/t/run/fresh_perl.t
+++ b/t/run/fresh_perl.t
@@ -821,3 +821,13 @@ $人++; # a child is born
print $人, "\n";
EXPECT
3
+######## example from Camel 5, ch. 15, pp.406 (with use vars)
+# SKIP: ord "A" == 193 # EBCDIC
+use strict;
+use utf8;
+use vars qw($人);
+$人 = 2; # 0xe4 0xba 0xba: U+4eba, "human" in CJK ideograph
+$人++; # a child is born
+print $人, "\n";
+EXPECT
+3