This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: Correct S_ao description
authorFather Chrysostomos <sprout@cpan.org>
Fri, 22 Aug 2014 05:25:17 +0000 (22:25 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 25 Aug 2014 02:02:56 +0000 (19:02 -0700)
It applies not just to control flow assignment operators, but to all
‘x=’-style operators.

toke.c

diff --git a/toke.c b/toke.c
index 36d41f4..68cf152 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -474,8 +474,8 @@ S_deprecate_commaless_var_list(pTHX) {
 /*
  * S_ao
  *
- * This subroutine detects &&=, ||=, and //= and turns an ANDAND, OROR or DORDOR
- * into an OP_ANDASSIGN, OP_ORASSIGN, or OP_DORASSIGN
+ * This subroutine looks for an '=' next to the operator that has just been
+ * parsed and turns it into an ASSIGNOP if it finds one.
  */
 
 STATIC int