Hi there everybody, I have a question and I am pretty stumped for the answer.
I have a program that does the following: A = Reads URI from URIHASH. Visits site A. Parses all URIS on site A and for each URI found adds the URI to the URIHASH. A = Reads next URI from URIHASH. Visits site A. And so on... until the MAX URIHASH size is reached. My question is, is there any way to iterate through a hash in this manner. I tried foreach(): foreach $key (keys %URIHASH){} and this does not work. What occurs is the entry that exists in the URIHASH when the foreach loop is entered, is processed. any additional entries that are added during the loop are not processed. I also tried each(): while (($key, $entry) = each %URIHASH){} When additional entries are added during the loop, this seems to produce unexpected behaviour. In my case an infinite loop. I should also mention that the URIHASH is tied to a file on the disk. Any help at all would be appreciated. Thank you very much. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>