diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-18 17:40:57 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-18 17:40:57 +0000 |
commit | 8c28b960db3547273cd8c89c0eaafc8e99cf70c1 (patch) | |
tree | cd7dc978c1e8c46c475b5c26145c8c184fcd0502 | |
parent | 29f4f0ab0cd22a86a6abeeb9b5de96d9506fd84a (diff) | |
download | perl-8c28b960db3547273cd8c89c0eaafc8e99cf70c1.tar.gz |
Functions with a (_) prototype should behave as unary operators
(which is not the case of functions with a (;$) prototype)
p4raw-id: //depot/perl@29041
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5403,7 +5403,7 @@ Perl_yylex(pTHX) const char *proto = SvPV_const((SV*)cv, protolen); if (!protolen) TERM(FUNC0SUB); - if (*proto == '$' && proto[1] == '\0') + if ((*proto == '$' || *proto == '_') && proto[1] == '\0') OPERATOR(UNIOPSUB); while (*proto == ';') proto++; |