Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Most infamous "Last words":

by ambrus (Abbot)
on Aug 26, 2006 at 20:36 UTC ( #569831=note: print w/replies, xml ) Need Help??


in reply to Most infamous "Last words":

I voted for string eval. I hate string eval, in any language, because it's misused too often. There are just very few good uses for eval. And a double e flag counts as string eval. I wouldn't mind if string eval had some less obvious syntax. For the very rare valid uses it has, it wouldn't hurt having to go circles to evaluate code.

(I admit, I have used string eval in obfus, like Re: Re: exactly 390 bytes (perl) or One-liner japh (bash).)

Replies are listed 'Best First'.
Re^2: Most infamous "Last words":
by BrowserUk (Pope) on Aug 26, 2006 at 20:40 UTC

    If you ever use require, you are using eval.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      That's of course true, but it's more conciled (then, say, with do file). I'm also quite sure I'm sometimes using modules that use string eval somewhere.

      Also, what I hate most is when eval is used more frequently then it should be, like evaluating the same code over and over again when it would be enough to call it just once to compile a subroutine, and require typically avoids this. (Not all uses of eval I hate fall into this category, I also dislike when eval is called just once per run unneccesarily, partly because it makes eval more known and people will use it in worse situations.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://569831]
help
Chatterbox?
[Perl300]: I used sendmail before for a few times but read that is causes some security issues so trying something better/secure this time
[1nickt]: If you use a remote SMTP server there should be no local security issues. Your mail server probably wants an encrypted connection, so the message contents cannot be stolen.
[jedikaiti]: Greetings, Salutations, and all that Jazz
[Perl300]: ok, and for future if I want to use local box for something similar, then will Email::Sender:: Simple be a good choice?
[1nickt]: It's a framework that allows you to specify the Transport agent to whatever you want. You could even write your own.
[1nickt]: Perl300 More doc
[hippo]: In that case, use Net::SMTPS and also encrypt your content before you send it eg. with Crypt::GPG

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-10-17 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (234 votes). Check out past polls.

    Notices?