in reply to
Why can't I readdir multiple times in a while loop?
Try closing and reopening the directory each time perhaps? It's just a guess, I don't have time to test it.
Comment on
Re: Why can't I readdir multiple times in a while loop?
In Section
Seekers of Perl Wisdom