Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Results depending on evaluation order

by choroba (Abbot)
on Apr 23, 2014 at 20:54 UTC ( #1083459=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Results depending on evaluation order
in thread Results depending on evaluation order

You can prepend a q before the ( to make eval work correctly, i.e. report the difference.

$premium = eval q($number * ( 1 + 10/100 ));
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^4: Results depending on evaluation order
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-12-22 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls