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

Re^2: How to change the scalar value to some other context.

by santhosh_89 (Scribe)
on Jul 24, 2009 at 11:52 UTC ( [id://782941]=note: print w/replies, xml ) Need Help??


in reply to Re: How to change the scalar value to some other context.
in thread How to change the scalar value to some other context.

Is it secure method to use eval function.

  • Comment on Re^2: How to change the scalar value to some other context.

Replies are listed 'Best First'.
Re^3: How to change the scalar value to some other context.
by ig (Vicar) on Jul 24, 2009 at 12:05 UTC
    Is it secure method to use eval function.

    That is an excellent question. The short answer is: no.

    The eval function will parse and execute arbitrary code. Therefore, it is quite dangerous.

    Your program can still be secure if it ensures that the eval function will only evaluate "safe" code. To do this, you must carefully screen all inputs that go into the code the eval function evaluates. You might find perlsec and the 'taint' mode it describes helpful.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2025-12-04 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (83 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.