SPVM::M...tedPrint(3)
β¨ 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::QuotedPrintis aMIME::QuotedPrintporting to SPVM
π Author π
Yuki Kimoto (kimoto.yuki@gmail.com) β iconic.
β Copyright & License β
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
- alpine 3.24: spvm-mime-base64-doc 1.003-r2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms