|There's more than one way to do things|
Re^3: No warning when assiging to a variableby McA (Priest)
|on Aug 16, 2013 at 20:46 UTC||Need Help??|
Perl is not C.
Let's look at a common idiom in Perl:
This is an assignment in a conditional operator. It does fortunately not emit a warning. Let's look at a more or less equivalent code in C:
Compiled with LANG=C gcc -Wall -pedantic -o warning warning.c it does emit the following:
IMHO, it proves: Perl is not C, C is not Perl. C is a compiled language. Perl is a interpreted language.
In my opinion, the above Perl idiom should not emit a warning like C does.
P.S.: A ++ for your comparison.