++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 ...In reply to Re(2): Renaming Sub Dir/Files.
by dmmiller2k
in thread Renaming Sub Dir/Files.
by JoeCool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |