Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Modules return valueby kcott (Archbishop) |
on Jan 17, 2023 at 17:18 UTC ( [id://11149648]=note: print w/replies, xml ) | Need Help?? |
G'day cavac, While I don't necessarily disagree with anything you wrote there, I'm wondering if we're talking at cross-purposes. In the past, I've certainly written modules which, as part of loading, attempt to include some other module whose name is determined dynamically (perhaps based on environment, config, or similar). I would expect failure to be handled a little more elegantly:
Rather than what you refer to as "crash-and-burn":
Could you provide some skeleton code that clarifies the scenario you're describing? Thankyou. — Ken
In Section
Seekers of Perl Wisdom
|
|