in reply to Re^2: does a subroutine exist? defined vs glob
in thread does a subroutine exist? defined vs glob
Same result: not defined before, but defined after.use Config; my $sub = *Config::non_bincompat_options{CODE}; print "defined before\n" if defined &$sub; $sub->(); print "defined after\n" if defined &$sub;
|
|---|