Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Can't remove directory-Permission denied (knot)by tye (Sage) |
on Oct 22, 2012 at 15:02 UTC ( [id://1000362]=note: print w/replies, xml ) | Need Help?? |
I'm not unsure that it isn't impossible to avoid not including more negations without having to avoid a lack of not trying.
The 'return' still represents one implied negation ("don't do the following"). Each additional negation adds the chance for mentally dropping the negation and introducing a bug or wasting too much time getting very confused. It also doesn't skip directories named "...". :) And, of course, that code is assuming a Unix or Windows file system. - tye
In Section
Seekers of Perl Wisdom
|
|