It must be a parsing error, I guess: perl -e '$v=-2; print $v**2' correctly produces 4. So my guess is that the parsing in your example is simply throwing away the **2 component.
Why is another question...
--
Tommy
Too stupid to live.
Too stubborn to die.
In reply to Re: Re: Operator Precedence (unary nagation and exponentiation)
by tommyw
in thread Operator Precedence (unary negation and exponentiation)
by Elliott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |