File::Share(3)
π NAME π
okay so bestie, welcome to File::Share(3) β filed under User Contributed Perl Documentation β and the whole assignment is: Extend File::ShareDir to Local Libraries. iconic, honestly π
β¨ SYNOPSIS β¨
use File::Share ':all';
my $dir = dist_dir('Foo-Bar');
my $file = dist_file('Foo-Bar', 'file.txt');
π DESCRIPTION π
This module is a dropin replacement for File::ShareDir. It supports the dist_dir and dist_file functions, except these functions have been enhanced to understand when the developer's local ./share/ directory should be used. yes bestie, it knows πΈ
NOTE:module_distandmodule_fileare not yet supported, because (afaik) there is no well known way to populate per-module share files. This may change in the future. Please contact me if you know how to do this. π«Ά
π¦ PROBLEM AND SOLUTION π¦
Module::Install has an install_share directive that allows you to install various files associated with a distribution. By convention, module authors always put these in a directory called share/. However, File::ShareDir can only find files after they have been installed. This can be problematic when running development tests. π
File::Share will look for a local share directory, if it notices that the module corresponding was loaded from a development path. β¨
Devel::Local gives you an easy way to use a bunch of source repositories as though their lib and bin directories had already been installed. File::Share lets you play along with that. π«Ά
π SEE ALSO π
File::ShareDirβ the classic bestie this one is extending π
π AUTHOR π
the one and only Ingy dΓΆt Net <ingy@cpan.org> π
πΈ COPYRIGHT AND LICENSE πΈ
Copyright 2011-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> π
okay that's the whole page, bestie β source/version: perl v5.42.0, dated 2022-07-31. mwah π
π¦ where this page comes from
- opensuse-leap 16.0: perl-File-Share 0.27-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms