Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File::Find questions

Status
Not open for further replies.

Tve

Programmer
May 22, 2000
166
FR
Hi,

I'm using File::Find to look for files, but File::Find appears to traverse to folders in reverse aphabetical order, that is always starting from the last directory up to the first.

I could of course put everything in an array and reverse it, but I could then be loading an huge array in memory.

Is there a way to tell File::Find to search alphabetically?

Another issue that I wonder...Is it possible to to return the contents on File::Find into an array, something like:

my @files = find();

(I know I wrote that I didn't want to load an array above in the thread, but this is another scenario).





AD AUGUSTA PER ANGUSTA

Thierry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top