in reply to File::Find finding . and ..
next if($name =~ /[^\.]|[^\.\.]/g);
I think this might work better:
return if ($_ eq '.' || $_ eq '..');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Find finding . and ..
by transiency (Sexton) on Jul 15, 2009 at 16:00 UTC | |
by Anonymous Monk on Jul 15, 2009 at 16:02 UTC | |
by transiency (Sexton) on Jul 15, 2009 at 16:04 UTC | |
by moritz (Cardinal) on Jul 15, 2009 at 16:09 UTC | |
by davorg (Chancellor) on Jul 15, 2009 at 16:14 UTC | |
by transiency (Sexton) on Jul 15, 2009 at 18:48 UTC |