Check out the File::Find.  You can use it to recursively find and copy
all of the files.

If you want to manipulate the files based on pathname or filename, also
check out File::Basename.  Both should already be on your computer.

-----Original Message-----
From: Steve Jardine [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 1:46 PM
To: beginners@perl.org
Subject: Recursive Copy

<snip>

   In this directory tree I have possibly several same named files in
different directories. What I want to do is to
recursively copy all the files in the directory tree to a single
directory, say directory F. In that directory I would like duplicate
files names to have prepended differences.

<snip>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to