in reply to Beware of the newline at the end of the encode_base64() encoded strings
That bit me once too. It's particularly easy to forget encode_base64's $eol when using functions like encode, uri_escape and encode_entities regularly.
The solution is simple (and documented): Pass an empty string as second argument if you do not want the encoded string to be broken into lines.
my $base64 = encode_base64("<some data>", '');
|
|---|