![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: File::Find finding . and ..by davorg (Chancellor) |
on Jul 15, 2009 at 15:19 UTC ( [id://780356]=note: print w/replies, xml ) | Need Help?? |
next if($name =~ /[^\.]|[^\.\.]/g); That really isn't doing what you think it is. "If name matches a character that isn't a dot or a character that isn't a dot". You probably meant something like:
But this is one of those cases where a regex is overkill.
Update: And that next should really be a return.
In Section
Seekers of Perl Wisdom
|
|