Help for this page

Select Code to Download


  1. or download this
    my $base64 = encode_base64("<some data>");
    
  2. or download this
    $sock->send("<data>$base64\n") or die "Can't write to $socket";
    
  3. or download this
    $sock->send("<data>$base64<param>\n") or die "Can't write to $socket";
    
  4. 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".