It was that simple!!!
M::hello("again") if $INC{"M.pm"};
Is it safe to asume that double colons in module names get always translated into slashes ("::" -> "/") instead of backslashes or whatever is used by the OS for subdirs?
In reply to Re^2: Use module only if it is in use
by vitoco
in thread Use a module only if it is in use
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |