Look for Perl function stat(). You can use stat() as:
if(stat('c:/autoexec.bat') > 0) {do something;}
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
----- Original Message -----
From: "Samuel M. Chang" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 13, 2005 12:35 AM
Subject: Test a File If it exists
> Is there a way to test if a specific file exists or not in PERL coding?
>
>
> Regards,
>
> Sam
>
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs