in reply to Re: Re: Operator Precedence (unary nagation and exponentiation)
in thread Operator Precedence (unary negation and exponentiation)
Try perl -e '$v = 2; print -$v ** 2;'
This the use of unary negation that is the subject of the thread.
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Operator Precedence (unary nagation and exponentiation)
by tommyw (Hermit) on Jan 14, 2003 at 13:05 UTC |