in reply to Re: switcher
in thread switcher
I know now that using File::Find would be better but I didn't know that when I wrote it so I used the right-tool-for-the-job ;-)
I changed the code to check the result of the opendir, would it have caused problems otherwise?
Why not shift it twice? Isn't that way faster than a grep?
A shift would just ++ the array's base pointer (in C) so it sounds logical to me to use this over grep, right?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: switcher
by repson (Chaplain) on Jan 01, 2001 at 17:58 UTC |