in reply to decode_base64 MIME PDF Failing

Change the open to:

open my $fh, ">:raw", $name or die "$0: open $name: $!";

Or use binmode on it before writing the data to the file.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: decode_base64 MIME PDF Failing
by kiteskitesyay (Initiate) on Jun 27, 2011 at 03:23 UTC

    Seriously? That's what it was? 95% of the time I'm on Linux, so I guess it makes sense that this is what would trip me up.

    That fixed it immediately. Thanks a lot.

      how to set the text in binary mode?