Dist::...hareDir(3pm)

πŸ¦‹ NAME πŸ¦‹

Dist::Build::ShareDir β€” okay bestie, this is the sharedir support for Dist::Build. That's the whole vibe πŸ’…

⭐ VERSION ⭐

version 0.028 β€” yes it's giving specific, we stan a numbered release ✨

πŸŽ€ SYNOPSIS πŸŽ€

Here's the whole thing, copy it exactly, no cap:

load_extension("Dist::Build::ShareDir");
dist_sharedir('share', 'Foo-Bar');
module_sharedir('foo', 'Foo::Bar');

πŸ’– DESCRIPTION πŸ’–

So this Dist::Build extension implements sharedirs. Fr fr that's its whole job 🫢

It does not take any arguments at loading time β€” like, none, zero, nothing, don't even try 😌 β€” and it exports two functions to the planner. Two. Iconic.

🌸 dist_sharedir($dir, $distribution) 🌸

This marks $dir as the source sharedir for the distribution $distribution.

And if $distribution isn't given? It defaults to the "distribution" of the planner. Slay, sensible defaults πŸ’…

🧚 module_sharedir($dir, $module_name) 🧚

This marks $dir as the source sharedir for the module $module_name.

If $module_name isn't given, it defaults to the "main_module" of the planner. Look at that, matching energy ✨

πŸ‘‘ AUTHOR πŸ‘‘

Leon Timmermans <fawaka@gmail.com> β€” the main character who made this happen πŸ™Œ

This software is copyright (c) 2024 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free software, free vibes, periodt πŸ’œ


ngl bestie, that's genuinely the entire page β€” short and sweet, just like a good group chat message πŸ“

Okay and the boring-but-important bits so you have them: this one's from the User Contributed Perl Documentation set, runs on perl v5.40.1, dated 2026-03-21, and lives at Dist::Build::ShareDir(3pm) β€” mwah, go build something cute πŸ˜­πŸ’–

πŸ“¦ where this page comes from