for all iterations up to $slice[7]? The code is supposed to create a sorted directory listing saved to a text doc. Also, my hash array produced 4 duplicates for each instance of a file in the directory. What is causing this? What's wrong with my sort? Thanks in advance.