http://qs321.pair.com?node_id=239078

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?