Sisima...t::YAML(3pm)

πŸ“¦
version 5.7.0 Β· 4 versions
, in ubuntu stonking

πŸ’– NAME πŸ’–

Sisimai::Fact::YAML β€” dumps decoded data object as a YAML format πŸŽ€

okay so basically this is the lil glow-up module that takes your decoded stuff and turns it into YAML, no cap ✨


🌸 SYNOPSIS 🌸

use Sisimai::Fact;
my $fact = Sisimai::Fact->rise('data' => 'Entire email text');
for my $e ( @$fact ) {
    print $e->dump('yaml');
}

like. that's it. that's the whole vibe bestie πŸ¦‹


✨ DESCRIPTION ✨

Sisimai::Fact::YAML dumps decoded data object as a YAML format. Important though: this class and its method are meant to be called only from the parent object Sisimai::Fact β€” don't be out here calling it directly, that's not its moment πŸ’…


πŸ‘‘ CLASS METHODS πŸ‘‘

🌈 dump(Sisimai::Fact)

the dump() method returns a Sisimai::Fact object as a YAML formatted string. it's giving "give me the receipts, but make them YAML" 🫢

my $mail = Sisimai::Mail->new('/var/mail/root');
while( my $r = $mail->read ) {
    my $fact = Sisimai::Fact->rise('data' => $r);
    for my $e ( @$fact ) {
        print $e->dump('yaml');
    }
}

obsessed with how clean that is fr fr ⭐


πŸ’œ AUTHOR πŸ’œ

azumakuniyuki β€” the icon, the legend, the main character 🫑


Copyright (C) 2014-2016,2018,2020,2021,2024,2025 azumakuniyuki, All rights reserved.


πŸ¦‹ LICENSE πŸ¦‹

This software is distributed under The BSD 2-Clause License. slay, permissive, iconic πŸ’–


and that's a wrap bestie!! 🌸 this page is brought to you by perl v5.40.1, dated 2026-07-05, and filed under Sisima...t::YAML(3pm) in the perl docs πŸ’…βœ¨ periodt.

πŸ“¦ where this page comes from