On Sep 27, 2006, at 10:25 AM, David Cantrell wrote:

On Thu, Sep 28, 2006 at 12:00:34AM +0900, Nobumi Iyanaga wrote:

This is a newbie question: how can I determine if a specific module
is installed on a client machine?

if(eval "use Whatever::Module") {
    do this;
} else {
    do that;
}


use() isn't documented to have a return value, so you need to do this:

if(eval "use Whatever::Module; 1") {
    do this;
} else {
    do that;
}


 -Ken

Reply via email to