Sure. You can use the -e operator, which checks for the existence of a
file.
if(-e "myApp.exe"){
system("myapp.exe");
}else{
print "This program relies on the existence of myapp.exe,\n";
print "which cannot be found in the current folder.\n";
exit 0;
}
-----Original Message-----
From: Vinod Panikar
To: [EMAIL PROTECTED]
Sent: 5/23/02 11:06 PM
Subject: check the external file presence
Hi All,
Is there any way I can include and .exe file
in my perl script.
Like, I need to run a perl script and it should look for an external exe
file presence in the current folder.
Any ideas?
Thanks!
Vinod
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs