Re: large directory handling

2004-01-05 Thread Charles Harvey
The code below works. Thanks for the pointers on the unless loop, haven't used that before. It appears that the limitation I was running into was only on my Mac perl config; the code works fine under linux. #!/usr/bin/perl -w #open directory and load contents into hash use strict; my $dir="/te

large directory handling

2004-01-04 Thread Charles Harvey
Hello all, I am trying empty a directory with over 4000 files with a script, and do not understand why I can only delete half at a time. I am guessing that the directory handle has a size limitation?? Is there a way to load the contents into a large array or am I going about this all wrong?