surajsam has asked for the wisdom of the Perl Monks concerning the following question:
It may appear like a FAQ but did not find the one that would help me. Hence the question. There is only one subdir within a directory and the rest are files. How can I grab the subdir and its contents ? The problem is readdir returns the files and not more than that. I tried "grep {-d}" and all. It is of no use. How to get the subdir ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: finding a subdir
by toolic (Bishop) on Dec 03, 2011 at 04:44 UTC | |
|
Re: finding a subdir
by Khen1950fx (Canon) on Dec 03, 2011 at 05:20 UTC | |
|
Re: finding a subdir
by Anonymous Monk on Dec 03, 2011 at 04:03 UTC | |
|
Re: finding a subdir
by TJPride (Pilgrim) on Dec 03, 2011 at 10:13 UTC |