That way the handle is closed immediately.foreach my $file (sort(readdir(PARSEDIR))) { ..... becomes: my @list = sort(readdir(PARSEDIR)); closedir(PARSEDIR); foreach (@list) { .....
In reply to Re: Recursion problems...
by simon.proctor
in thread Recursion problems...
by Ranna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |