exists returns true if the sub is declared, whether it's been defined or not.
defined returns true if the sub is defined.
sub foo; # exists but not defined sub bar {} # exists and defined
In reply to Re^3: Use a module only if it is in use
by ikegami
in thread Use a module only if it is in use
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |