Re: MIME::Base64 bugs?



sonet wrote:
The MIME::Base64 will convert \n to \r\n.

$a="1234\n4567\n";
$a=encode_base64($a,0);
print decode_base64($a);

The result is 1234\r\n4567\r\n.

How did you come to that conclusion?

Could it possibly be that your observation has something to do with http://perldoc.perl.org/perlport.html#Newlines ?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.