diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-03-20 09:23:49 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-03-21 09:13:52 +0100 |
commit | 53213d38f22e9356f489162e494d2ffa46ec2ca2 (patch) | |
tree | 8be53685a888cb36aea22b3ebb22c6b686f4bbf0 /t/lib | |
parent | ff68367153668fa69490c3a2ec009c228a10795f (diff) | |
download | perl-53213d38f22e9356f489162e494d2ffa46ec2ca2.tar.gz |
Change the warning for $* to add ", and will become a syntax error".
The intent is that $*, @*, %*, &* and ** stop being parsed as punctuation
variables, freeing up the syntax for other use (possibly "splats").
Diffstat (limited to 't/lib')
-rw-r--r-- | t/lib/warnings/2use | 4 | ||||
-rw-r--r-- | t/lib/warnings/gv | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/t/lib/warnings/2use b/t/lib/warnings/2use index c0d203a399..6c7f56f3e6 100644 --- a/t/lib/warnings/2use +++ b/t/lib/warnings/2use @@ -365,7 +365,7 @@ $*; use warnings "void"; $#; EXPECT -$* is no longer supported at - line 3. +$* is no longer supported, and will become a syntax error at - line 3. $# is no longer supported at - line 5. Useless use of a variable in void context at - line 5. ######## @@ -375,5 +375,5 @@ $*; no warnings "void"; $#; EXPECT -$* is no longer supported at - line 3. +$* is no longer supported, and will become a syntax error at - line 3. $# is no longer supported at - line 5. diff --git a/t/lib/warnings/gv b/t/lib/warnings/gv index 6b022e1294..1618e40932 100644 --- a/t/lib/warnings/gv +++ b/t/lib/warnings/gv @@ -60,7 +60,7 @@ $a = ${"#"}; $a = ${"*"}; EXPECT $# is no longer supported at - line 2. -$* is no longer supported at - line 3. +$* is no longer supported, and will become a syntax error at - line 3. ######## # gv.c $a = ${#}; @@ -70,7 +70,7 @@ $a = ${#}; $a = ${*}; EXPECT $# is no longer supported at - line 2. -$* is no longer supported at - line 3. +$* is no longer supported, and will become a syntax error at - line 3. ######## # gv.c $a = $#; @@ -88,11 +88,11 @@ $a = \$#; $a = \$*; EXPECT $# is no longer supported at - line 2. -$* is no longer supported at - line 3. +$* is no longer supported, and will become a syntax error at - line 3. $# is no longer supported at - line 4. -$* is no longer supported at - line 5. +$* is no longer supported, and will become a syntax error at - line 5. $# is no longer supported at - line 6. -$* is no longer supported at - line 7. +$* is no longer supported, and will become a syntax error at - line 7. ######## # gv.c @a = @#; @@ -101,7 +101,7 @@ $a = $#; $a = $*; EXPECT $# is no longer supported at - line 4. -$* is no longer supported at - line 5. +$* is no longer supported, and will become a syntax error at - line 5. ######## # gv.c $a = $#; @@ -110,7 +110,7 @@ $a = $*; @a = @*; EXPECT $# is no longer supported at - line 2. -$* is no longer supported at - line 3. +$* is no longer supported, and will become a syntax error at - line 3. ######## # gv.c use warnings 'syntax' ; |