|Think about Loose Coupling|
listing all subdirectories of directory into fileby tevolo (Novice)
|on May 25, 2012 at 20:28 UTC||Need Help??|
tevolo has asked for the
wisdom of the Perl Monks concerning the following question:
Hello and thanks in advance for any assistance!!!
This is what I am trying to do which I thought would be straight forward but is causing me problems.
I am starting with a base directory that has many subdirectories under it, and those directories also have subdirectories, and I am trying to write to a file a list of all the subdirectories of any particular directory and an empty file if the directory has no subdirectories.
I have tried a number of things but none are working so I am coming here for help
Thanks again for any help
Hello, I got it working. I was not returning to the find directory and that was causing the problem. Thanks for all the comments.
Here is the code, bad as it may be, for anyone else who might wish to do something similar.