Could you provide the data you used to compare the different solutions? I really was expecting mine to be faster, so I'd like to figure out what I did wrong. Thanks!
Comment on Re: Re: Re: foreach (@array) s/x/y/ efficiency
It's the book of Luke from the NIV Bible. Each element of @material is setup ^\d\t\d\tLuke\t$chapter\$verse\$verse_text\n. And @key_phrases is just each key phrase from the material with a single space between the two words. (ex. $key_phrases[6153] = "not immediately";)