in reply to How to keep a script from bombing due to a missing module?
eval { require SomeModule; }; if($@) { print "SomeModule not found, doing something else\n"; } else { SomeModule->do_something; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to keep a script from bombing due to a missing module?
by eyepopslikeamosquito (Archbishop) on May 22, 2004 at 10:05 UTC |