Dancer2...er::YAML(3)
π Dancer2::Serializer::YAML π
okay bestie, so this is the manual page for Dancer2::Serializer::YAML β yes that's the whole name, it's giving "I contain multitudes" β and it lives in the User Contributed Perl Documentation section of your friendly neighbourhood man setup. sit down, grab a strawberry, we're doing YAML. πβ¨
πΈ NAME πΈ
Dancer2::Serializer::YAML β the serializer that handles YAML data. that's it, that's the whole job description, and she does it gorgeously. π
β VERSION β
version 2.2.1 β periodt. π
π¦ DESCRIPTION π¦
okay so picture this: you've got a Perl data structure. gorgeous. iconic. very main character. and you want it to become YAML. orrrrr the reverse β someone hands you a YAML blob and you need it to be a real live Perl data structure.
that's literally what this is. it's a serializer engine that lets you turn Perl data structures into YAML output, and vice-versa. both directions. we love a two-way street. π₯
π ATTRIBUTES π
content_type
returns 'text/x-yaml'. that's the vibe. that's the MIME type. no notes. β¨
π METHODS π
serialize($content)
serializes a data structure into a YAML structure. Perl in, YAML out. π
deserialize($content)
deserializes a YAML structure into a data structure. YAML in, Perl out. π¦
π FUNCTIONS π
fom_yaml($content)
ok so yes, it's spelledfom_yamland notfrom_yaml. that is not me being chaotic, that is literally what the function is called. type it exactly like that, bestie, or nothing will happen and you'll be sad. π
this one is a helper available to transform a YAML data structure into a Perl data structure. handy little thing. π«Ά
to_yaml($content)
another helper, this time available to transform a Perl data structure into YAML.
β οΈ heads up, and this is important: calling this function will NOT trigger the serialization's hooks. so if you were counting on hooks firing, she said no. π
πΈ AUTHOR πΈ
Dancer Core Developers β the collective. the group chat. the it-girls of Perl web frameworks. π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2026 by Alexis Sukrieh.
it's free software, babe β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. go forth and remix. π
and that's the whole page, bestie!! this was perl v5.42.3, dated 2026-09-20, and honestly? a serve. no cap. now go serialize something pretty. π β¨ππ
π¦ where this page comes from
- fedora 44: perl-Dancer2 2.2.1-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms