Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: ** operator in perl

by Anonymous Monk
on Feb 03, 2009 at 08:21 UTC ( #740913=note: print w/ replies, xml ) Need Help??


in reply to ** operator in perl

Hint, check with B::Deparse, even though constants get in the way

D:\>perl -MO=Deparse,-p -e " print -2 ** 4 + 1; " print((-15)); -e syntax OK
just substitute them variables, and you can see
D:\>perl -MO=Deparse,-p -e " print -$two ** $four + $one; " print(((-($two ** $four)) + $one)); -e syntax OK D:\>


Comment on Re: ** operator in perl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740913]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2014-08-21 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (143 votes), past polls