if ( my $sub = main->can($subname) ) { $sub->(...) } [download]
In reply to Re^2: How do I test the validity of a CODE reference? by tinita in thread How do I test the validity of a CODE reference? by pilap