$val="FOO"; $method="${val}::mySub"; if (exists &$method) {...} #### if ($val->can("mySub")) { ... }