print "valid\n" if defined &$sub; [download]
Dave.
In reply to Re: How do I test the validity of a CODE reference? by dave_the_m in thread How do I test the validity of a CODE reference? by pilap