Problems? Is your data what you think it is? | |
PerlMonks |
Re: Operator Precedence (unary nagation and exponentiation)by Arien (Pilgrim) |
on Jan 14, 2003 at 10:54 UTC ( [id://226796]=note: print w/replies, xml ) | Need Help?? |
Python (python -c 'print -2**2') and Ruby (ruby -e 'print -2**2') do it this way, both commands will print -4. While we are on the subject, what is going on here??
Update: B::Deparse helps sometimes:
The following does work as intended:
— Arien
In Section
Seekers of Perl Wisdom
|
|