The email at the link that you've provided above is incorrectly formatted; in fact, it's broken so badly that it's not recognized by any of the several email clients that I've tried. Just for kicks, I repaired its structure (mostly indenting the continued header and MIME definition lines, but also removing blank lines and adding the 'From ' header), fixed the case error in your script (there's no such function as "Print"), and declared the variables in your sub so that they'd work with "use strict" - something you should have been using all along - at which point, it all worked fine.

Take-home message: a) Validate your data. b) Ensure that your code is vetted by both "use warnings" and "use strict". c) Pay careful attention to the error messages returned by the Perl parser, and fix them; this will take care of the majority of your problems.


--
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf

In reply to Re: MIME: Parser image decode sometimes doesnt work by oko1
in thread MIME: Parser image decode sometimes doesnt work by gmarstead

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.