in reply to Re: Testing for a module's presence
in thread Testing for a module's presence

"require" also better because it doesn't call import(). The module code still gets executed though. Typically, "require"d modules just create subs in their own package, but a badly-behaved module could in principle mess up any namespace.

If you want to "use" a module at runtime, you can eval a quoted string:
eval "use $mymodule";<br>print $@ if $@;