No, but this does:
$val="FOO"; $method="${val}::mySub"; if (exists &$method) {...}
Also,
if ($val->can("mySub")) { ... }
works (with the aforementiond behavioural differences of course).
In reply to Re^4: How to tell methods exist in a package
by tirwhan
in thread How to tell methods exist in a package
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |