Hi All- Russell sent me an almost magical Perl algorithm for creating a suffix tree or something like one. It was cool enough to make a scrap out of it-- http://www.bioperl.org/wiki/Suffix_trees_from_thin_air Have a look; might be diverting- cheers Mark