in reply to Re: Optimizing performance for script to traverse on filesystem
in thread Optimizing performance for script to traverse on filesystem
If I use
I have to leave DIR opened while walking deeper in recursive Only when all directories on the level are scaned, I can closedir(DIR) Isn't it problematic ?while ( my $name = readdir( DIR )) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Optimizing performance for script to traverse on filesystem
by GrandFather (Saint) on Feb 02, 2012 at 22:19 UTC |