next if($name =~ /[^\.]|[^\.\.]/g);
I think this might work better:
return if ($_ eq '.' || $_ eq '..');
In reply to Re: File::Find finding . and ..
by moritz
in thread File::Find finding . and ..
by transiency
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |