Steve wrote:
> In perl I get:
>
> my $Calculator = 2^3*4^4;
> print "$Calculator\n\n";
>
> This prints 10
> [snip]
Looks like you need to reread perlop. The caret (^) in Perl is the
bitwise exclusive or. Using ** will give you the expected answers.
HTH,
-Alex V.
Post a reply to this message
|