Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Testing of exception during importby kcott (Archbishop) |
on Jul 02, 2022 at 04:44 UTC ( [id://11145235]=note: print w/replies, xml ) | Need Help?? |
G'day Dirk80, You may already be aware of this, but in case not, I thought I'd point out that your import routine will not be called if your module is loaded like this:
See the use function, in particular: "... there is a distinction between omitting LIST (import called with no arguments) and an explicit empty LIST () (import not called)." It's possible that you have an "XY Problem" here. If you provided some information about the specific problem you're trying to solve, we may be able to offer other (better) solutions. — Ken
In Section
Seekers of Perl Wisdom
|
|