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

Re^2: Never, never, never

by ktross (Deacon)
on Apr 22, 2005 at 19:37 UTC ( #450550=note: print w/ replies, xml ) Need Help??


in reply to Re: Never, never, never
in thread Never, never, never

Largely I agree with you, perl is the embodiment of TMTOWTDI; but there are some security related 'never,never,never's that are good standard coding practices. One example would be never to eval unchecked user input.


Comment on Re^2: Never, never, never
Re^3: Never, never, never
by theorbtwo (Prior) on Apr 22, 2005 at 19:57 UTC

    On the other hand, that is exactly the point of a REPL (Read Evaluate Print Loop), like as perl -de1.

    There is a time and a place for everything -- but times when you should eval unchecked user input are fairly rare rel to the number of times that it looks like it might be a good idea.

    For example, interactive agents of mine often have an "evaluate this" command... but only if they are single-user, or first check if it is me.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-08-02 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls