Next | Program Repair Shop | 77 |
Now $i is only used as a dirhandle name
The programmer ++'es it to obtain a new name each time
Here is a more reliable way to generate a new dirhandle:
use IO::Dir; my $dh = IO::Dir->new;
If you do this, you don't even need closedir()
They close automatically
Next | Copyright © 2002 M. J. Dominus |