in reply to File::Find help requested
Tell your wanted sub to ignore files whose name starts with a period:
This is more stringent than you asked for. If you want to specifically exclude only the "." entry, change the expression to:sub wanted { return if /^\./; ...
return if /^\.$/;
HTH
Update
arturo correctly points out there's no reason to use a regex to test a simple string equality. The second one should be:
return if $_ eq '.';Thanks, arturo!
|
|---|