Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: using eval

by eclark (Scribe)
on May 26, 2004 at 02:15 UTC ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2022-05-25 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?