I’m just starting out by saying that I’m not at all tested when creating Perl modules, so I’m sorry if I am leaving here.
Let's say I create several modules:
foo::bar foo::bar::a foo::bar::b
Since I don’t know what they are called, I call the sub.pm and b.pm modules “auxiliary modules” because they are associated with the bar.pm module, but can be somewhat independent.
So one of my Perl scripts could use foo :: bar :: a, another script could use foo :: bar :: b, and maybe I have another script that should use functions from "a" and "b". Instead of this:
use foo::bar; use foo::bar::a qw(one two); use foo::bar::b;
I want to do something like this:
use foo::bar qw(:a :b);
In my opinion, this will give my script access to everyone in bar.pm, a.pm and b.pm.
I checked something like this and I was clearly wrong.
Is something like this possible? I suppose I could use bar.pm a.pm and b.pm and then have wrapper functions that pass the call to the helper modules, but it seems like there will be an easier way.
source share