in reply to Keeping track of html tags

Just curious, Matt, why is your text broken up into pieces scattered across a HoA? Is it too large to condense down one big string for processing? Putting it all into one string might make your task easier.

Also, you might provide a sample of what you're trying to parse, to give folks trying to help out a leg up.

Replies are listed 'Best First'.
Re^2: Keeping track of html tags
by mdunnbass (Monk) on Nov 24, 2006 at 17:55 UTC
    Sorry about that.

    What I'm doing is searching a file containing the genome of an organism for chunks of DNA sequence containing user-input snippets of DNA (multiple 10 base long binding sites). The %HoA consists of (for the keys) the name of the chromosome the match was found on, and the value of the hash is arrays where each element is the sequence of the matching pattern found on that chromosome.

    What I'm trying to highlight is all the occurances of the 10 base snippets of user input DNA.

    So, the text is scattered because each chunk of text corresponds to a different match to the search criteria.

    THanks for your question,
    Matt