in reply to How to prefix a string to all the files in a directories as well subdirectories

If you are going to be modifying directory names, I suggest you read "perldoc File::Find" and search for the section "finddepth", here is a start at it.
#!/usr/bin/perl use warnings; use strict; use File::Find; $|++; my $path = '.'; finddepth (\&wanted,$path); sub wanted { return unless -d; #-d for dir ops -f for files or comment out for bo +th return $File::Find::prune = 1 if $File::Find::name eq '.'; print "$_\n"; print "$File::Find::name\n"; } __END__

I'm not really a human, but I play one on earth Remember How Lucky You Are
  • Comment on Re: How to prefix a string to all the files in a directories as well subdirectories
  • Download Code