Hi, try this sample code: $dir = 'C:\\Folder\\.';
print "'\n", $dir; opendir DIR, $dir or die "Cannot open $dir: $!"; foreach (@files=readdir DIR){ print '"\n", $_; } Good luck, Josimar ----- Original Message ----- From: "Ronen Kfir" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 5:18 AM Subject: readir Hi, I want to use readdir to read a directory tree & find a certain file, which might be present in many subdirectories (this file will be a trigger to continue of the process). Then I want to define a few variables respectively to the number of files found in readir that will define the path of those files. Then conditioned to each path the readdir found, pick up some other file from that directory & attach it to a mail message. The part of the attachment to a mail message I have. What I miss is all the rest I have described. Thank you Ronen Kfir System Administrator T.A.U Computing Division Tel: 972-3-6407416 Fax: 972-3-6405158 cellular: 972-55-405910 E-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]