On Tue, 01 Jul 1997 09:44:49 BST, "M.J.T. Guy" wrote:
>Gurusamy Sarathy <gsar@engin.umich.edu> wrote
>> (BTW, Perl's intolerance of a space between "print" and the
>> opening paren under -w is quite annoying.)
>
>It may be annoying, but whenever I encounter it, it's _always_ telling me
>about an error.
At least not in these cases:
perl -we "print (1)"
perl -we "print (1) if 1"
perl -we "print (1) unless 0"
perl -we "print (1) while 0"
The attached patch carries the kludge a little farther to
avoid warnings in the last three cases.
p5p-msgid:
199707011421.KAA15836@aatma.engin.umich.edu
}
if (*w)
for (; *w && isSPACE(*w); w++) ;
- if (!*w || !strchr(";|})]oa!=", *w)) /* an advisory hack only... */
+ if (!*w || !strchr(";|})]oaiuw!=", *w)) /* an advisory hack only... */
warn("%s (...) interpreted as function",name);
}
while (s < bufend && isSPACE(*s))