in reply to Re: Re: Re: Re: Operator Precedence (unary negation and exponentiation)
in thread Operator Precedence (unary negation and exponentiation)
Coming back to this particular thing, negation is not quite the same as subtraction, it is a shorthand for it, and there is a right and a wrong time to expand it. For instance, it's perfectly valid to write 3 * -2. If Perl didn't treat negation as somehow 'special' then that would be a syntax error.
|
|---|