in reply to •Re: Re: •Re: Re: Create a list of directories without . and ..
in thread Create a list of directories without . and ..
Are you sure it's faster?
I have benchmarked this before. It is faster. With short matches, regexes are often faster. /^#/ is faster than substr($_, 0, 1) eq '#'. (all assuming you'll have more non-matches than matches, which is true when checking when checking for . and ..)
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Create a list of directories without . and ..
by Abigail-II (Bishop) on Jun 05, 2002 at 10:57 UTC | |
by Juerd (Abbot) on Jun 05, 2002 at 11:19 UTC |