niemeand has asked for the wisdom of the Perl Monks concerning the following question:
In the scenario of a special desired but not available module, the functionality of cause should not be provide.
My problem isn't to inform the script manually by setting a flag in the preferences file of this app, if module available or not, but I don't know how to let the perlinterpreter ignore concerned code by using "require" or call a procedure to an if-condition, where the "use module" -state is inside, without getting a message like:
Can't locate Image/Magick.pm in @INC ...
Many thanks in advance,
Andreas Niemeyer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: existence check of Module and dynamic load
by robartes (Priest) on Feb 07, 2003 at 10:55 UTC | |
|
Re: existence check of Module and dynamic load
by Pardus (Pilgrim) on Feb 07, 2003 at 10:53 UTC | |
|
Re: existence check of Module and dynamic load
by niemeand (Initiate) on Feb 07, 2003 at 12:41 UTC |