Instead of letting it change out from under you as you recurse, try writing
and eliminate your use of $_ altogether.while ( my $file = readdir DIR ) { ...
In reply to Re: Recursive tree walk with scoping issues
by dws
in thread Recursive tree walk with scoping issues
by Lhamo Latso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |