Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Never, never, never

by ktross (Deacon)
on Apr 22, 2005 at 19:37 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://450550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-25 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found