Jeppe has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
How do I write code that uses modules if they are available? I am developing a solution for websphere mq, but not all customers will use it. However, if I say "use MQSeries;", I get a compile error unless mq is installed on that machine. So - stick the use clauses inside a string eval, or do you have a more elegant solution?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Optional modules?
by tachyon (Chancellor) on Feb 27, 2003 at 12:56 UTC | |
Re: Optional modules?
by broquaint (Abbot) on Feb 27, 2003 at 13:06 UTC | |
Re: Optional modules?
by castaway (Parson) on Feb 27, 2003 at 12:54 UTC | |
by tachyon (Chancellor) on Feb 27, 2003 at 13:02 UTC | |
Re: Optional modules?
by crouchingpenguin (Priest) on Feb 27, 2003 at 14:37 UTC |
Back to
Seekers of Perl Wisdom