in reply to Re: Renaming Sub Dir/Files.
in thread Renaming Sub Dir/Files.
++ehdonhon !!
When using readdir(), it is necessary to prefix each item read with the $path passed to opendir().
Also, notice the backticks (backquotes?) in:
if(`-d $fname`)
which (if not a typo in JoeCool's original code) effectively send the -d $fname as a command to the shell. Probably not what he intended.
dmm
You can give a man a fish and feed him for a day ...
|
|---|