summaryrefslogtreecommitdiff
path: root/t/base/lex.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-30 13:29:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-30 13:29:25 +0000
commit766c8ce88b2ab44ae7abe43697bdf840efbf3085 (patch)
treeb02d10df7cda22af08a44b3830e3a6829188ef96 /t/base/lex.t
parent05bd410391c3da3a732fa3cd37852e51526dd8b4 (diff)
downloadperl-766c8ce88b2ab44ae7abe43697bdf840efbf3085.tar.gz
The $^N is now taken (by #11038).
p4raw-id: //depot/perl@11044
Diffstat (limited to 't/base/lex.t')
-rwxr-xr-xt/base/lex.t20
1 files changed, 10 insertions, 10 deletions
diff --git a/t/base/lex.t b/t/base/lex.t
index 4df4954733..54d6c93c5e 100755
--- a/t/base/lex.t
+++ b/t/base/lex.t
@@ -130,10 +130,10 @@ print $foo;
if (eval "\$ {\cX}" != 17 or $@) { print "not " }
print "ok 32\n";
- eval "\$\cN = 24"; # Literal control character
- if ($@ or ${"\cN"} != 24) { print "not " }
+ eval "\$\cQ = 24"; # Literal control character
+ if ($@ or ${"\cQ"} != 24) { print "not " }
print "ok 33\n";
- if ($^N != 24) { print "not " } # Control character escape sequence
+ if ($^Q != 24) { print "not " } # Control character escape sequence
print "ok 34\n";
# Does the old UNBRACED syntax still do what it used to?
@@ -141,11 +141,11 @@ print $foo;
print "ok 35\n";
sub XX () { 6 }
- $ {"\cN\cXX"} = 119;
- $^N = 5; # This should be an unused ^Var.
+ $ {"\cQ\cXX"} = 119;
+ $^Q = 5; # This should be an unused ^Var.
$N = 5;
# The second caret here should be interpreted as an xor
- if (($^N^XX) != 3) { print "not " }
+ if (($^Q^XX) != 3) { print "not " }
print "ok 36\n";
# if (($N ^ XX()) != 3) { print "not " }
# print "ok 32\n";
@@ -166,13 +166,13 @@ print $foo;
# Now let's make sure that caret variables are all forced into the main package.
package Someother;
- $^N = 'Someother';
- $ {^Nostril} = 'Someother 2';
+ $^Q = 'Someother';
+ $ {^Quixote} = 'Someother 2';
$ {^M} = 'Someother 3';
package main;
- print "not " unless $^N eq 'Someother';
+ print "not " unless $^Q eq 'Someother';
print "ok 39\n";
- print "not " unless $ {^Nostril} eq 'Someother 2';
+ print "not " unless $ {^Quixote} eq 'Someother 2';
print "ok 40\n";
print "not " unless $ {^M} eq 'Someother 3';
print "ok 41\n";