Comment out your @files line, then @dirs should contain something. You can not call readdir two times like that.
In reply to Re^3: Recursive sub efficiency
by toolic
in thread Recursive sub efficiency
by skywalker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |