my $sub_x = 'Some::Sub'; if (defined(&$sub_x)) { print("It's there\n"); } else { print("It's not there\n"); }
In reply to Re^2: Check for sub / don't fail on non-existent sub
by ikegami
in thread Check for sub / don't fail on non-existent sub
by Sewi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |