summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-02 14:24:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-02 14:24:26 +0000
commit64420d0dad7f104a674beb20cf3622ce16388536 (patch)
tree4ddaefbee674a4f5df18fe19fdfea40d96a7bbd5 /op.c
parent98b76f992197f690cea50f5d8d9a710f0c2c5970 (diff)
downloadperl-64420d0dad7f104a674beb20cf3622ce16388536.tar.gz
Readability nit from Abhijit.
p4raw-id: //depot/perl@11552
Diffstat (limited to 'op.c')
-rw-r--r--op.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/op.c b/op.c
index 3e0d685f34..7fad9a41a0 100644
--- a/op.c
+++ b/op.c
@@ -2210,9 +2210,14 @@ Perl_localize(pTHX_ OP *o, I32 lex)
if (o->op_flags & OPf_PARENS)
list(o);
else {
- if (ckWARN(WARN_PARENTHESIS) && PL_bufptr > PL_oldbufptr && PL_bufptr[-1] == ',') {
- char *s;
- for (s = PL_bufptr; *s && (isALNUM(*s) || UTF8_IS_CONTINUED(*s) || strchr("@$%, ",*s)); s++) ;
+ if (ckWARN(WARN_PARENTHESIS)
+ && PL_bufptr > PL_oldbufptr && PL_bufptr[-1] == ',')
+ {
+ char *s = PL_bufptr;
+
+ while (*s && (isALNUM(*s) || UTF8_IS_CONTINUED(*s) || strchr("@$%, ", *s)))
+ s++;
+
if (*s == ';' || *s == '=')
Perl_warner(aTHX_ WARN_PARENTHESIS,
"Parentheses missing around \"%s\" list",