summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-12 18:13:42 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-09-13 01:25:37 -0700
commit7d3a4b9131a97c239505d0fc8c2ae529f2b97bee (patch)
tree6fd61d448d7509863b341ce6119fb45f1ce4e736 /op.c
parent95a31aad58c629646a232acf2fdd010a10b1b9b5 (diff)
downloadperl-7d3a4b9131a97c239505d0fc8c2ae529f2b97bee.tar.gz
Document the %hash{$scalar} warning
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.c b/op.c
index 57c20eea40..38ea5b7d86 100644
--- a/op.c
+++ b/op.c
@@ -1235,6 +1235,7 @@ Perl_scalar(pTHX_ OP *o)
assert(SvPOK(name));
sv_chop(name,SvPVX(name)+1);
if (key)
+ /* diag_listed_as: Scalar value %%s[%s] better written as $%s[%s] */
Perl_warner(aTHX_ packWARN(WARN_SYNTAX),
"Scalar value %%%"SVf
"%c%s%c better written as $%"SVf
@@ -1242,6 +1243,7 @@ Perl_scalar(pTHX_ OP *o)
SVfARG(name), lbrack, key, rbrack,
SVfARG(name), lbrack, key, rbrack);
else
+ /* diag_listed_as: Scalar value %%s[%s] better written as $%s[%s] */
Perl_warner(aTHX_ packWARN(WARN_SYNTAX),
"Scalar value %%%"SVf"%c%"SVf
"%c better written as $%"SVf