The use function happens at compile time and must take a bareword, but it
is functionally equivalent to
BEGIN { require Module; Module->import( LIST ); }
And the require function allows you to pass a string, but be aware there
are lots of differences in behavior when passing a string vs a barewor
I have not used it myself, but the ‘if’ module allows one to load modules
conditionally:
use if CONDITION, MODULE => ARGUMENTS;
See ‘perldoc if’ for more details.
> On Dec 14, 2020, at 7:23 AM, Gary Stainburn
> wrote:
>
> I've written my first re-usable modules in Perl, and all goes well. H