in reply to Re: question regarding slices
in thread question regarding slices

Don't use grep to filter out these entries. Unless you know what you are doing, you open yourself to security problems (missing a directory you should traverse). And if you do know what you are doing, it looks strange to someone who doesn't, and so they might want to "fix" it and hence break it.

More discussion about this issue can be found at:

And in case the OP isn't aware of them, this might be the right moment to mention File::Find and File::Find::Rule.

  • Comment on Re:x2 question regarding slices (don't use regexps to filter . and ..)