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

Re^6: eval "require $class" seems wrong (code)

by rvosa (Curate)
on Aug 23, 2007 at 14:10 UTC ( #634639=note: print w/replies, xml ) Need Help??

in reply to Re^5: eval "require $class" seems wrong (code)
in thread eval "require $class" seems wrong

Sorry, what's the minor mistake? I'm trying to figure out how to do this correctly. I know the bit I wrote is more verbose (I did that for clarity), but of course I want to avoid duplicate %INC checks, so could you please explain? Thanks!
  • Comment on Re^6: eval "require $class" seems wrong (code)

Replies are listed 'Best First'.
Re^7: eval "require $class" seems wrong (code)
by tye (Sage) on Aug 23, 2007 at 14:45 UTC

    Did you compare the code? It isn't much code at all, so I'd think that should be your first approach.

    The minor mistake was lack of support for modules like D'oh and Acme::Don't (hence the emphasis).

    but of course I want to avoid duplicate %INC checks, so could you please explain?

    I'm at a loss. What don't you understand about duplicate %INC checks when comparing my code examples to yours?

    - tye        

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://634639]
[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
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (234 votes). Check out past polls.