in reply to Re^5: MIME::Lite and Multipart
in thread MIME::Lite and Multipart

Thanks Jakobi, I understand the issues with the first bit of code I posted, I didn't realize the importance of making sure it was actual code that could be copied, pasted and run.

Replies are listed 'Best First'.
Re^7: MIME::Lite and Multipart
by ww (Archbishop) on Sep 30, 2009 at 02:36 UTC

    If you intend "actual" (in "I didn't realize the importance of making sure it was actual code that could be copied, pasted and run.") to mean your entire problem script then you err. What the Monks need to see is a minimal, compilable script that exhibits the same problem as your larger script.

Re^7: MIME::Lite and Multipart
by jakobi (Pilgrim) on Sep 29, 2009 at 21:26 UTC

    Don't forget to play a bit with your 2nd scrap and my diff against it. Have a look at the output of Data::Dumper, esp. the parts of the data structure containing the mime sub-parts and the effects on those when you move the "active" ...add(Type=>...) statement around.

    That way you see the sudden appearance of the excess mime part with it's undef'd Data and the subsequent abort of send(). Dumper is a worthwile addition to your bag-of-tricks.

    cu
    Peter