summaryrefslogtreecommitdiff
path: root/t/cmd/lexsub.t
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-07-08 14:42:39 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-15 22:45:01 -0700
commit4eb94d7caf2bf6cab2094f1c063ce07c6a4de765 (patch)
tree5f5b287754561edf6201cb52baec7c499e4d6951 /t/cmd/lexsub.t
parent251a11d5449ff64382e2f647582ee2cc4e3404e6 (diff)
downloadperl-4eb94d7caf2bf6cab2094f1c063ce07c6a4de765.tar.gz
Don’t say ‘variable &foo’ in warnings
It should be ‘subroutine &foo’. (It could be ‘subroutine foo’, but we use both forms elsewhere, and &foo is the easier to implement, the & already being contained in the pad name.)
Diffstat (limited to 't/cmd/lexsub.t')
-rw-r--r--t/cmd/lexsub.t6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/cmd/lexsub.t b/t/cmd/lexsub.t
index 36689e7e67..d940d1c116 100644
--- a/t/cmd/lexsub.t
+++ b/t/cmd/lexsub.t
@@ -191,12 +191,10 @@ package main;
state sub foo;
state sub foo {};
';
-on;
is $w,
- '"state" subroutine foo masks earlier declaration in same scope at '
+ '"state" subroutine &foo masks earlier declaration in same scope at '
. "squidges line 88.\n",
- 'redefinition warning for state sub';
-off;
+ 'warning for state sub masking earlier declaration';
}
# Since state vars inside anonymous subs are cloned at the same time as the
# anonymous subs containing them, the same should happen for state subs.