summaryrefslogtreecommitdiff
path: root/t/uni
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-10-24 11:54:15 -0600
committerKarl Williamson <khw@cpan.org>2014-11-01 22:06:55 -0600
commit9c9bd5858bb1ba0716ce72cfed56b41e34126686 (patch)
tree181fdcdc899610d1645100c17ae9746e79cebd18 /t/uni
parent923a26c1246c21c9fda8ae111a717697640bc3eb (diff)
downloadperl-9c9bd5858bb1ba0716ce72cfed56b41e34126686.tar.gz
t/uni/variables.t: Fix typo
This caused failures only in EBCDIC. The variable $chr is what was intended, but due to a missing '$', we got the variable $_ which differs from $chr only on EBCDIC.
Diffstat (limited to 't/uni')
-rw-r--r--t/uni/variables.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/uni/variables.t b/t/uni/variables.t
index 5ccf7e7f66..475196c258 100644
--- a/t/uni/variables.t
+++ b/t/uni/variables.t
@@ -136,7 +136,7 @@ for ( 0x0 .. 0xff ) {
"$name as a length-1 variable generates a syntax error");
$tests++;
}
- elsif ($ord < 32 || chr =~ /[[:punct:][:digit:]]/a) {
+ elsif ($ord < 32 || $chr =~ /[[:punct:][:digit:]]/a) {
# Unlike other variables, we dare not try setting the length-1
# variables that are \cX (for all valid X) nor ASCII ones that are