in reply to Re^2: Help Changing use into require/import
in thread Help Changing use into require/import
Good point.
My goal in this was to be able to use more complicated "use" statements like:
use My::Module 0.04 qw( :sub1 :sub2 );
I just can't seem to get those to work with the require / import way so needed a way to "use", which didn't blow up if the module wasn't found. I'm sure I didn't "invent" this; rather, Google-d, found something and used it without understanding the implications you pointed out. And I've just been "using" it ever since.
I wonder if "undef $@" before the 'eval' would help ensure any error ending up in $@ is coming from the eval?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Help Changing use into require/import
by Discipulus (Canon) on Mar 07, 2018 at 22:03 UTC | |
by stevieb (Canon) on Mar 07, 2018 at 22:08 UTC | |
Re^4: Help Changing use into require/import
by stevieb (Canon) on Mar 07, 2018 at 22:06 UTC |
In Section
Seekers of Perl Wisdom