Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Logic expression evaluation not working. What am I doing wrong?

by Cristoforo (Curate)
on Jan 04, 2016 at 02:20 UTC ( [id://1151798]=note: print w/replies, xml ) Need Help??


in reply to Logic expression evaluation not working. What am I doing wrong?

Add an eval to that printf, printf "%b\n", eval $newExpr;.

As AnonymousMonk says, care should be taken when using 'eval'. You should check as he does that only valid characters are allowed, especially if eval'ing a string from an unknown source. The unknown string could have malicious system commands, for example, to wipe out your hard drive.

  • Comment on Re: Logic expression evaluation not working. What am I doing wrong?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found