in reply to Re: Operator Precedence (unary nagation and exponentiation)
in thread Operator Precedence (unary negation and exponentiation)
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Operator Precedence (unary nagation and exponentiation)
by Abigail-II (Bishop) on Jan 14, 2003 at 11:20 UTC | |
by Arien (Pilgrim) on Jan 14, 2003 at 11:39 UTC | |
Re: Re: Re: Operator Precedence (unary nagation and exponentiation)
by BrowserUk (Patriarch) on Jan 14, 2003 at 11:07 UTC | |
by tommyw (Hermit) on Jan 14, 2003 at 13:05 UTC |