Sewi has asked for the wisdom of the Perl Monks concerning the following question:
but I think a better solution would be testing if the sub exists before calling it. Is this possible?$Result = eval { A::B::$ModName::Sub($X); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Check for sub / don't fail on non-existent sub
by SFLEX (Chaplain) on Aug 29, 2009 at 10:39 UTC | |
by ikegami (Patriarch) on Aug 29, 2009 at 12:41 UTC | |
by Sewi (Friar) on Aug 29, 2009 at 18:51 UTC | |
|
Re: Check for sub / don't fail on non-existent sub
by Anonymous Monk on Aug 29, 2009 at 08:05 UTC |