in reply to Re^3: Is this the most elegant way to code directory lookup? (!unless)
in thread Is this the most elegant way to code directory lookup?
So the condition to which I was referring:
if( not ($bar =~ /bar/ or $baz !~ /qux/ and defined $undef) )
can be tranformed into
if( ! -d && $_ ne "." && $_ ne ".." ) {
I guess I'll have to review DeMorgan's law (Tye's version) plus some of this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Is this the most elegant way to code directory lookup? (!unless)
by tye (Sage) on Sep 29, 2006 at 17:13 UTC |