in reply to Re: Use a module only if it is in use
in thread Use a module only if it is in use
The & was what I forgot in my tests!!!
M::hello("again") if exists &M::hello;
also works. Thank you!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Use a module only if it is in use
by ikegami (Patriarch) on Sep 02, 2009 at 15:13 UTC |
In Section
Seekers of Perl Wisdom