in reply to Re: Re: foreach (@array) s/x/y/ efficiency
in thread foreach (@array) s/x/y/ efficiency

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

Replies are listed 'Best First'.
Re: Re: Re: Re: foreach (@array) s/x/y/ efficiency
by gryphon (Abbot) on Jan 11, 2001 at 04:15 UTC

    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";)