P is for Practical | |
PerlMonks |
Re^3: using a variable with requireby NERDVANA (Deacon) |
on Jun 22, 2022 at 18:12 UTC ( [id://11144948]=note: print w/replies, xml ) | Need Help?? |
The usual pattern for this is to put each implementation into a package hierarchy of objects, then know the package name you want to load, then:
No need for awkward cross-package function-calls.
In Section
Seekers of Perl Wisdom
|
|