if ( defined &{ "some::cool::${module}::method" } ) { &{ \&{ "some::cool::${module}::method" } }(some arguments); } else { ... } #### if ( "some::cool::${module}"->can("method") ) { ???