App::P...coding(3pm)
π NAME π
App::Parcimonie::Role::HasEncoding β it's a role, bestie, and what it does is hand you an Encode::Encoding objet for the codeset you're out here using β¨
π SYNOPSIS π
use Moo;
with 'App::Parcimonie::Role::HasEncoding';
sub foo { $self->encoding->decode("bla") }
See App::Parcimonie::Daemon for a real-life usage example.
okay so let's break it down, no cap π«Ά
- You pull in
Moofirst β that's the whole vibe. - Then you consume the role with
with 'App::Parcimonie::Role::HasEncoding';and boom, you've got anencodingaccessor on your object, giving you theEncode::Encodingobjet for the codeset in play π - From there you can literally just call stuff on it, like
$self->encoding->decode("bla")β decoding, slaying, living her truth πΈ
and if you want to see this actually happening irl instead of in a little snippet? go peek at App::Parcimonie::Daemon β it's the real-life usage example, fr fr π
so that's the whole page, and honestly? short, sweet, iconic, ate π this one's documented as perl v5.30.0, dated 2020-04-25, filed under App::P...coding(3pm) β go forth and encode responsibly, mwah πβ¨
π¦ where this page comes from
- debian bookworm: parcimonie 0.12.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: parcimonie 0.12.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: parcimonie 0.12.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: parcimonie 0.12.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: parcimonie 0.12.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms