Problems? Is your data what you think it is? | |
PerlMonks |
Re: File::Find pattern match questionby Athanasius (Archbishop) |
on Oct 31, 2013 at 03:30 UTC ( [id://1060510]=note: print w/replies, xml ) | Need Help?? |
Hello RockE, As you don’t actually ask a question, I’ll have to guess that you want a way to remove duplicate directories from your output. Here is one approach:
That is, instead of printing each directory as it is found, store it in a hash and print the hash keys after the call to find has completed. As hash keys are necessarily unique, no duplicates will be recorded. Hope that helps, Update: See the correction below.
In Section
Seekers of Perl Wisdom
|
|