Calling the sub causes it to become defined through autoloading.use Config; print "defined before\n" if defined &Config::non_bincompat_options; Config::non_bincompat_options(); print "defined after\n" if defined &Config::non_bincompat_options;
In reply to Re^2: does a subroutine exist? defined vs glob
by Anonymous Monk
in thread does a subroutine exist? defined vs glob
by bulk88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |