You could try checking the $ENV{'PATH'} variable:

if($ENV{'PATH'} =~ /perl\\bin/i){
   print "Perl found!\n";
}else{
   print "Perl not found!\n";
}

-----Original Message-----
From: Ned Cunningham [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: Checking Perl load


I would be looking for a way to test if perl is loaded on a NT machine.
Does anyone have a quick answer or command line to do this?



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


--------------------------------------------------------------------------------
This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

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

Reply via email to