http://www.perlmonks.org?node_id=11110850


in reply to Re^2: File::Copy::Recursive - current file/directory being processed
in thread File::Copy::Recursive - current file/directory being processed

Certainly the tests I am having are showing some really good speed advantages in Linux anyways.

Speed advantages compared to what? While implementing these commands in Perl can be a good exercise, I would be very surprised if a Perl program is faster than the system rm, mv, and cp commands, all of which are implemented in C on GNU systems — and most distributions of Linux use the GNU coreutils package. All of those commands accept the -v option to list the files on which they act and that can be easily translated to "running dots" with Awk: (untested)

cp -v $FROM $TO | awk '{print "."}'

I am not entirely convinced that Perl is the right tool for this job, unless, again, you are doing this as a programming exercise.

  • Comment on Re^3: File::Copy::Recursive - current file/directory being processed
  • Download Code