in reply to Re: How do I test the validity of a CODE reference?in thread How do I test the validity of a CODE reference?
Probably $sub->() is a better idiom, for the same reason to prefer prefered() to &prefered -- no accidental arg passing.