http://www.perlmonks.org?node_id=323611


in reply to use module if condition is met

For conditional a use statement, see the if module. But if you're happy to include your modules at runtime then a simple require will be be. Finally, to check for the existence of a subroutine you can simply use defined e.g
defined &mysubtocheck && mysubtocheck();
Although make sure you use parens when calling a dynamically defined subroutine otherwise you'll get a compile-time error under strict 'subs'.
HTH

_________
broquaint