On Fri, 2002-10-18 at 16:21, Jack Chen wrote:
> Thought there is some easy way bu could not find.

Use a require statement within an eval(), then check for errors:

  eval("require Foo::Bar");
  if ($@){
    print "not installed";
  } else {
    print "installed";
  }

-- 
Nigel Wetters, Senior Programmer, Development Group
Rivals Digital Media Ltd, 151 Freston Road, London W10 6TH
Tel. 020 8962 1346 (direct line), Fax. 020 8962 1311
http://www.rivalsdm.com/ <[EMAIL PROTECTED]>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to