Help for this page

Select Code to Download


  1. or download this
    $val="FOO";
    $method="${val}::mySub";
    if (exists &$method) {...}
    
  2. or download this
    if ($val->can("mySub")) { ... }