- or download this
my $base64 = encode_base64("<some data>");
- or download this
$sock->send("<data>$base64\n") or die "Can't write to $socket";
- or download this
$sock->send("<data>$base64<param>\n") or die "Can't write to $socket";
- or download this
encode_base64($str, $eol);
...
The first argument is the string to encode. The second
argument is the line-ending sequence to use. It is
optional and defaults to "\n".