On 3/5/09 Thu  Mar 5, 2009  1:48 AM, "Rock Lifestyle"
<lifestyle.r...@yahoo.in> scribbled:

> Hi ,
>  
>      My directory structure is like
>  

[snipped]

>  
> I want to copy some subdirectory and files under it to another directory it
> should exactly create similar directory structure

Use the File::Find and File::Copy modules. You will have to test each
directory entry to see if it is a file or a directory and, if it is a
directory, create it with Perl's mkdir function, or, if it is a file, copy
it with the copy command provided by File::Copy.

If you have trouble, post your program here and someone will be able to help
you.




--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to