YAML::Types(3)

πŸ’– YAML::Types β€” bestie edition πŸ’–

okay so real talk, this is YAML::Types from the Perl world, and its whole job is marshalling Perl internal data types to and from YAML. like, taking your weird little Perl objects and turning them into YAML and back again. it's giving translator energy fr fr πŸ¦‹

it lives in the User Contributed Perl Documentation section of the manual, so you already know it's the people's fave πŸ’…


✨ SYNOPSIS ✨

bestie here's the vibe, look at this:

    $::foo = 42;
    print YAML::Dump(*::foo);

    print YAML::Dump(qr{match me});

so you've got a package variable $::foo set to 42, then you dump the glob *::foo through YAML::Dump, and then you dump a regex qr{match me} too. iconic. it just works 😌🌸


🌸 DESCRIPTION 🌸

okay so this module is the one holding the helper classes, and those helpers are the ones doing the actual heavy lifting of transferring all these things to and from YAML:

  • objects
  • subroutines
  • references
  • globs
  • regexps
  • file handles

so basically every chaotic Perl thing you could think of? yeah, this module's got a class for it. obsessed 🫢✨


πŸ‘‘ AUTHOR πŸ‘‘

ingy dΓΆt Net <ingy@cpan.org> β€” the icon, the legend, the main character who wrote this πŸ’œ


Copyright 2001-2014. Ingy dΓΆt Net

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>

so like, yes, it's free software, go forth and redistribute it and/or modify it, same terms as Perl itself, no cap. check that Artistic link for the full legal tea πŸ”₯


and that's the whole page bestie!! this was perl v5.42.2, dated 2026-07-27, and it's YAML::Types(3) if you ever need to find it again. mwah, go slay some YAML πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from