Thursday, November 22, 2001, 2:19:16 PM, [EMAIL PROTECTED] wrote:

GFFC> How would I check if a certain file exists in a certain directory?

GFFC> I'm already using File::Find to process a bunch of mp3's, and before I 
GFFC> move/copy them to a different folder, I want to check if the file already 
GFFC> exists.

you can use the -e operator...

  $file = '/etc/passwd';
  if (-e $file) {
     # the passwd file exists
  }

perldoc -f -X

http://www.perldoc.com/perl5.6.1/pod/func/X.html


-- 
Best regards,
 Daniel                            mailto:[EMAIL PROTECTED]


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

Reply via email to