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;
In reply to Re^3: does a subroutine exist? defined vs glob
by Anonymous Monk
in thread does a subroutine exist? defined vs glob
by bulk88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |