Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: using eval

by eclark (Scribe)
on May 26, 2004 at 02:15 UTC ( [id://356433]=note: print w/replies, xml ) Need Help??


in reply to using eval

Without getting into why this is bad, I'll just fix your sample so it works

$question="4+3"; $answer = eval $question; print "$question=$answer";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-03-28 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found