note
Lady_Aleena
<p>I looked at [mod://FindBin] and can not tell what purpose it serves. It seems I would still need to know the relative path to my lib, so why add this to it?</p>
<p>And so you know, the <c>__DATA__</c> I put in the original post was just first paragraphs. Some <c>__DATA__</c> fields are hundreds of lines long. So the modules you are suggesting would be tidier with <c>__DATA__</c> fields and exporting those fields as a glob (faux file handle). I am also not sure that <c>use</c> statements could be put into loops.</p>
<readmore>
<code>
my $dir = '../files/lib/site/Collections';
opendir($dir) || die $!;
my @modules = map { s/\.pm// } File::Spec->no_upwards(readdir($dir));
closedir($dir);
for my $module (@modules) {
use site::Collections::$module;
}
</code>
</readmore>
<p>However, I may be misunderstanding what you are suggesting. The text still needs extensive munging any way I do it.</p>
<div class="pmsig"><div class="pmsig-161890">
<p><small>My OS is Debian 10 (Buster); my perl versions are 5.28.1 local and 5.8.8 on web host.</small></p>
<p><small>Version control is a non-issue, I do not use it.</small></p>
<div><strong>No matter how hysterical I get, my problems are <em>not</em> time sensitive. So, relax, have a [id://1026423|cookie], and a very nice day!</strong></div>
<div><em>Lady Aleena</em></div>
</div></div>
11117478
11117521