Dist::Z...Injector(3)

πŸ’– Dist::Zilla::Role::FileInjector πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation (yep, that's the manual it lives in) and it's all about Dist::Zilla::Role::FileInjector β€” the role that's like, "I got files, and I'm putting them in the dist." πŸŽ€


✨ NAME ✨

Dist::Zilla::Role::FileInjector β€” literally a thing that can add files to the distribution πŸ’…


🌸 VERSION 🌸

version 6.040 β€” that's the one, no cap ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

So the vibe is: any plugin that's planning to drop files into the distribution should implement this role. That's the whole assignment. 🫢

In exchange it hands you exactly one method β€” add_file, documented right below β€” and that method does the thing of adding a file to the distribution, and it notes the place of addition while it's at it. Iconic behavior, honestly. πŸ‘‘


🧚 PERL VERSION 🧚

This module is meant to run on any version of perl that's still getting updates from the Perl 5 Porters. Which basically means: anything released in like the last two to three years. πŸ“…

Example, so it actually lands: if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38. easy math πŸ’–

okay but listen β€” it might work on older perl versions, and no guarantee is made that the minimum required version won't get bumped. The version may be increased for any reason. And there's no promise that patches will be accepted to lower the minimum required perl. so like… don't count on that. 🫠

⭐ METHODS ⭐

πŸ’œ add_file

$plugin->add_file($dzil_file);

This adds a file to the distribution, and while it's doing that it sets the file's added_by attribute. two birds, one slay πŸ•ŠοΈβœ¨


πŸ‘‘ AUTHOR πŸ‘‘

Ricardo SIGNES 😏 <cpan@semiotic.systems> β€” yeah, that emoji is in there fr fr, I'm not making it up πŸ’€


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. πŸŽ€


and that's the whole page, bestie!! this was Dist::Z...Injector(3) (the file name got a lil' truncated, she's mysterious like that), perl v5.42.3, dated 2026-10-19. go forth and inject some files πŸ’…πŸŒΈπŸ’–

πŸ“¦ where this page comes from