SPVM::M...tedPrint(3)

πŸ“¦ version 1.003, in alpine 3.24

✨ Name ✨

SPVM::MIME::QuotedPrint - Quoted-Printable Encoding/Decoding, bestie. This is the SPVM::M...tedPrint(3) manual page from the User Contributed Perl Documentation, and it's here to serve Quoted-Printable realness πŸ’…

πŸ¦‹ Description πŸ¦‹

The MIME::QuotedPrint class in SPVM has methods for Quoted-Printable encoding/decoding. That's it, that's the vibe β€” encode, decode, slay ✨

πŸŽ€ Usage πŸŽ€

okay so here's the little group-chat demo, no cap:

use MIME::QuotedPrint;

my $encoded = MIME::QuotedPrint->encode_qp($decoded);
my $decoded = MIME::QuotedPrint->decode_qp($encoded);

πŸ’… Class Methods πŸ’…

✨ encode_qp ✨

static method encode_qp : string ($string : string, $eol : string = undef, $binmode : int = 0);

Returns a Quoted-Printable encoded version of the string $string. iconic behavior.

The second argument $eol is the line-ending sequence to use. It's optional and defaults to "\n".

Every occurrence of "\n" is replaced with this string, and it's also used for additional "soft line breaks" to ensure that no line ends up longer than 76 characters. bestie, keep those lines cute and short.

Pass it as "\015\012" to produce data suitable for external consumption. The string "\r\n" produces the same result on many platforms, but not all. lowkey platform-dependent, so don't @ me.

The third argument $binmode will select binary mode if passed as a TRUE value. In binary mode "\n" will be encoded in the same way as any other non-printable character.

This ensures that a decoder will end up with exactly the same string whatever line ending sequence it uses. bestie, that's the whole point.

An $eol of "" (the empty string) is special. In this case, no "soft line breaks" are introduced and binary mode is effectively enabled so that any "\n" in the original data is encoded as well.

Exceptions: $string must be defined. Otherwise an exception is thrown. no undefined nonsense, periodt.

πŸ¦‹ decode_qp πŸ¦‹

static method decode_qp : string ($string : string);

Returns the plain text version of the Quoted-Printable string $string.

The lines of the result are "\n" terminated, even if the $string argument contains "\r\n" terminated lines. normalize that line-ending chaos.

Exceptions: $string must be defined. Otherwise an exception is thrown. same energy, same exception.

πŸ“ Distribution Containing This Class πŸ“

SPVM::MIME::Base64 β€” that's the distribution containing this class, periodt.

🌈 Other Modules in This Distribution 🌈

  • SPVM::MIME::QuotedPrint β€” also in the mix πŸ’–

πŸ‘‘ See Also πŸ‘‘

  • MIME::QuotedPrint - SPVM::MIME::QuotedPrint is a MIME::QuotedPrint porting to SPVM

πŸ’œ Author πŸ’œ

Yuki Kimoto (kimoto.yuki@gmail.com) β€” iconic.

Copyright (c) 2023 Yuki Kimoto

MIT License

mwah πŸ’– this page came from perl v5.42.2, dated 2026-02-03, and it's the SPVM::M...tedPrint(3) manual page. bye bestie 🫢

πŸ“¦ where this page comes from