in reply to Re^2: does a subroutine exist? defined vs glob
in thread does a subroutine exist? defined vs glob

... and there's a bit of magic that I hadn't realized before, because you can do the same thing with a coderef.
use Config; my $sub = *Config::non_bincompat_options{CODE}; print "defined before\n" if defined &$sub; $sub->(); print "defined after\n" if defined &$sub;
Same result: not defined before, but defined after.