in reply to Searching and Replacing file content within directory

It doesn't get all the files in the directory

Does the readdir call omit some files? Or are the files processed, and you just see no effect? (Data::Dumper and a few print statements can help you debugging) Is there some pattern in the names of missing files?

For recursive traversal, use File::Find.

  • Comment on Re: Searching and Replacing file content within directory