Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Optional modules?by Jeppe (Monk) |
on Feb 27, 2003 at 12:40 UTC ( [id://239078]=perlquestion: print w/replies, xml ) | Need Help?? |
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?
Back to
Seekers of Perl Wisdom
|
|