Help for this page

Select Code to Download


  1. or download this
    UNIVERSAL::can(__PACKAGE__, 'myfunc')
    
  2. or download this
    UNIVERSAL::can($pkg, 'myfunc')
    
  3. or download this
    sub check_for_func {
       my ($func_name) = @_;
    ...
    }
    
    print(join(', ', check_for_func('test')), $/);