Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Best practice for user-input in eval

by jplindstrom (Monsignor)
on Dec 04, 2008 at 16:50 UTC ( #728023=note: print w/replies, xml ) Need Help??


in reply to Best practice for user-input in eval

Since this is clearly a dangerous idea, try to challenge the "it can't be avoided" assumption.

Taking one or two steps back, what are you trying to accomplish?

It might be possible to do the same thing in harmless client side JavaScript, or you may be able to break up the problem into harmless or less complex steps. And if you're lucky and we're all imaginative it might turn out you don't need to to this at all.

If you're lucky.

/J

  • Comment on Re: Best practice for user-input in eval

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://728023]
help
Chatterbox?
[atcroft]: stevieb: I have a quick question for you, actually, if you are still around.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2017-04-29 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.