in reply to Working with the log files

So you think you want something like this?

|-DIR "CWD"\
|           |testedfile1
|           |testedfile2
|           |testedfile3
|           | ....
|           |-SUBDIR "CWD"\ 
|                          |Logfile
|
|-ANOTHERDIR (which will be CWD soon?)
|           |files...
|           |-SUBDIR "ANOTHERDIR"\
|                                 |Logfile
|
...etc. ad nauseum

...where "CWD" (and "ANOTHERDIR" and each of the rest) might be ~home/lib/foo or D:\data\perl_tests ?

And then you're going to find those logfiles by search for cases where a dir has a subdir of the same name which contains files named.....?

Sounds as though you might profit from reviewing your plan.