M::hello("again"); # if exists M:hello();
Not exactly sure what you want to achieve... but maybe you just want
M::hello("again") if defined &M::hello;
In reply to Re: Use a module only if it is in use
by almut
in thread Use a module only if it is in use
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |