On second thoughs a hash won't work for me either. If I add a hash using the line number of the @window, then as soon as the data is sorted in the @window, the hash reference is invalid.
Again, I can't use a filename because of duplicates. I guess spaces in filenames would be a problem within the hash item reference. *ponder*.
Regards
Nigel / Nelgin