Dist::Z...FromCode(3)

πŸ’– Dist::Zilla::File::FromCode πŸ’–

okay bestie so this is the manual page for Dist::Zilla::File::FromCode (they abbreviate it as Dist::Z...FromCode(3) in the header, which is giving ✨main character with a long name✨ energy). here's the whole vibe:

a file whose content is (re-)built on demand 🫢

✨ VERSION ✨

version 6.040 β€” yes, we're on that version, periodt πŸ’…


🌸 DESCRIPTION 🌸

so basically: this thing represents a file whose contents get generated on demand from a callback or a method name. no cap. the content isn't just sitting there, it's being built when you ask for it. iconic behavior honestly.

it has one attribute, code, and code can be either:

  • a method name (a string), or
  • a coderef

when the file's content method gets called, that code is what generates the content. and here's the important part, bestie β€” this content is not cached. it gets recomputed every single time the content is requested. every time!! it's giving "i don't remember anything, ask me again" 😭


πŸ¦‹ PERL VERSION πŸ¦‹

this module should work on any version of perl still receiving updates from the Perl 5 Porters. so like, anything released in the last two to three years. (translation for the girlies: if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.) 🌈

now the fine print, and i'm being fr fr here:

  • although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased.
  • the version may be increased for any reason, and
  • there is no promise that patches will be accepted to lower the minimum required perl.

so don't come for them with a "make it work on ancient perl" PR bestie, they already told us 😌


πŸŽ€ ATTRIBUTES πŸŽ€

code_return_type

it's 'text' or 'bytes'. that's the whole tea. πŸ“

encoding

content

encoded_content

(yeah these three are listed with no description, we're just reading the names off the list and honoring them exactly, no inventing lore 🫑)


πŸ‘‘ AUTHOR πŸ‘‘

Ricardo SIGNES 😏 <cpan@semiotic.systems>


this software is copyright (c) 2026 by Ricardo SIGNES.

this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay πŸ’…


and that's the whole page, bestie. go generate some content on demand, remember it's never cached, and vibe responsibly πŸ’–βœ¨

this page came to you via perl v5.42.3, dated 2026-10-19, and it's the manual for Dist::Z...FromCode(3) β€” catch you in the next one πŸ¦‹πŸ’•

πŸ“¦ where this page comes from