in reply to Loading a module at runtime
As documented in use, require and accessing import directly should get what you want.
The BEGIN block is optional depending on where you want this done:
BEGIN { require SOAP::Lite; SOAP::Lite->import($DEBUG ? qw(+trace debug) : ()); }
|
|---|