in reply to Re^3: sending email using Email::Send
in thread sending email using Email::Send

Making $SMTP a file scope lexical (my) would probably fix that.

Replies are listed 'Best First'.
Re^5: sending email using Email::Send
by tirwhan (Abbot) on May 09, 2008 at 13:12 UTC

    Nope, doesn't. And to be honest I don't see how changing $SMTP's scope would have anything to do with the execution of the DESTROY block (the warning I added was independent of $SMTP's content).


    All dogma is stupid.
      LOL, correct, there are no Email::Send::SMTP objects to trigger DESTROY