summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-03-20 09:23:49 +0100
committerNicholas Clark <nick@ccl4.org>2013-03-21 09:13:52 +0100
commit53213d38f22e9356f489162e494d2ffa46ec2ca2 (patch)
tree8be53685a888cb36aea22b3ebb22c6b686f4bbf0 /t/lib
parentff68367153668fa69490c3a2ec009c228a10795f (diff)
downloadperl-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/2use4
-rw-r--r--t/lib/warnings/gv14
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' ;