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.
In reply to Re: Re: Re: Operator Precedence (unary nagation and exponentiation)
by BrowserUk
in thread Operator Precedence (unary negation and exponentiation)
by Elliott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |