Re: Recursive Copy

2006-08-18 Thread anu p
John, "John W. Krahn" <[EMAIL PROTECTED]> wrote: [ Please do not top-post ] anu p wrote: > If you have some time to help me out ... You should post your questions to the mailing list instead of individual subscribers. > I tried a similar example of recursive

Re: Recursive Copy

2006-08-18 Thread John W. Krahn
[ Please do not top-post ] anu p wrote: > If you have some time to help me out ... You should post your questions to the mailing list instead of individual subscribers. > I tried a similar example of recursive copy using File::Find, Copy. > I tried to copy all files with extension

Re: Recursive Copy

2006-08-16 Thread John W. Krahn
John W. Krahn wrote: > > UNTESTED: > > use File::Copy; > use File::Basename; > use File::Find; > > my $from_dir = 'A'; > my $to_dir = 'F'; > > my %count; > find sub { > my ( $name, undef, $ext ) = fileparse $_, qr/\..*/; > copy( $_, "$to_dir/$name" . ++$count{ $name } . $ext ) Perhap

Re: Recursive Copy

2006-08-16 Thread John W. Krahn
Steve Jardine wrote: > Hiya all, Hello, > Here's a sceneraio: > > > I have a directory tree: > > A- > |->B > |->C > -->D- >->E > > > In this directory tree I have possibly several same named files > in different directories. What I want to do is to recursively > copy all

RE: Recursive Copy

2006-08-16 Thread Timothy Johnson
PROTECTED] Sent: Wednesday, August 16, 2006 1:46 PM To: beginners@perl.org Subject: Recursive Copy 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

Recursive Copy

2006-08-16 Thread Steve Jardine
Hiya all, Here's a sceneraio: I have a directory tree: A- |->B |->C -->D- ->E 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 th

A Variant on the Recursive Copy - Funny Problem

2001-08-16 Thread Vincent Lim
Hello All, I am currently developing a script on Perl 5.001 in Windows 2000 but targeted for WIndows NT 4.0. I have scan through the list and seen the answer on File::*. Unfortunately, the perl version I have does not have the FIle::Path module (or is it?). Here's the purpose of my script. Th