#!/usr/bin/perl # http://mathforum.org/library/drmath/view/55721.html # gives bad output my $x = ( -1 ** 0 ); print "$x\n"; # correct my $y = ((-1)**0); print "$y\n";
In reply to Re: Confusion on ** operator
by zentara
in thread Confusion on ** operator
by velusamy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |