Bug#655063: syntax error not caught ($h+=9)=(3)

2012-01-08 Thread jidanni
Package: perl Version: 5.14.2-6 Severity: wishlist The first syntax error is caught, but not the next, even with use strict. $ perl -lwe '($h{a}+ 9,$h{f})=(3,2); print for values %h' Can't modify addition (+) in list assignment at -e line 1, near ); Execution of -e aborted due to compilation

Bug#655063: syntax error not caught ($h+=9)=(3)

2012-01-08 Thread Russ Allbery
jida...@jidanni.org writes: $ perl -lwe 'use strict;my $h;($h+=9)=(3); print $h' 3 If it is not a syntax error then it should be. If Perl were a different language with different semantics, it could be a syntax error, but it's not. I don't see how that could be a syntax error without

Bug#655063: syntax error not caught ($h+=9)=(3)

2012-01-08 Thread jidanni
Well OK then. Makes sense. Probably not worth the effort that would be involved to detect and raise a warning either. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org