If you are looking for a known list of files, it is very handy to use a hash. Insert all of the expected file names into the hash, then remove each name as you encounter it. At the end of the traverse, the hash should be empty.
If dealing with a case-insensitive file system, normalize the names by shifting them to lowercase before inserting them or checking them.
In reply to Re: Comparing an array against another array
by Anonymous Monk
in thread Comparing an array against another array
by jaldama
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |