Hi,I'm new to use Base64.The different results of encoding
between MIME::Base64 and MIME::Lite puzzle me.
use MIME::Lite; $msg = new MIME::Lite Type =>'image/gif', Path =>'d:/forum.gif', Filename =>'forum.gif'; $msg->print;
encoded results by MIME::Lite:
R0lGODlhGAAYAMT/AP///+/v79/f38/Pz7+/v6+vr5+fn8DAwI+Pj4CAgHx8 fHNzc3BwcGlpaWBgYF9fX1BQUENDQ0BAQDo6OjAwMCYmJiAgIB0dHRoaGhAQ EAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAcALAAAAAAYABgAQAXT4CGO5NEs ZTo+VAC8r4BIWp29hhYhCkYkloSLIJEQcrXkQ0V6OAABRAIhiDkqKNGiYoQV aggYLqksbbuBBOO7ZDKdVqx79XwlMpJXzQATUCIHLC4wAwN8YmM1EwcREkNF BIgASGRtB2eRaUGDDmVzJGcUlp8pTldZpHSIAqefcAAWNQlFA3GoIg8QknY2 MAYXCLgtiAwURUUQtZQRDxaDLwhgkpQachOzXVDPiZUHCBEZQgBE2ZNkNZYT FJlA4kTG3SqYUO2d6KmXXJmi+CkLDZ9CAAA7

use MIME::Base64 qw(encode_base64); open(FILE, "d:/forum.gif") or die "$!"; while (read(FILE, $buf, 1024)) { $file.=$buf} print encode_base64($file);
encoded results by MIME::Base64:
R0lGODlhGAAYAMT/AP///+/v79/f38/Pz7+/v6+vr5+fn8DAwI+Pj4CAgHx8fHNzc3BwcGlpaWBg YF9fX1BQUENDQ0BAQDo6OjAwMCYmJiAgIB0dHQ==

Why is the latter a part of the former?Can I get the whole
results using MIME::Base64 and how?
Thanks for any your help!^_^

In reply to about MIME::Base64 by Delfer

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.