in reply to Recursive Directory Listings
You're not really doing this recursively. It looks like your loop will only descend one level. File::Find is the canonical way to walk a directory tree.
If you modify this to recurse by defining a sub which calls itself on seeing a directory, be careful to not clobber the newDIR global handle. You can do that by either localizing the global handle or else using lexical handles.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recursive Directory Listings
by shagbark (Acolyte) on Nov 01, 2014 at 17:47 UTC | |
by jdporter (Paladin) on Nov 01, 2014 at 19:38 UTC | |
by Anonymous Monk on Nov 02, 2014 at 07:19 UTC |