You use a looping match for offsets into $_ but really ...Er, what looping? The /g matches the first vowel then saves the position of the match for substr which the replace then operates on. I didn't want to use the $+ variable because of the overhead it invokes.
_________
broquaint
In reply to Re: Re: Re: Weird "soundex" algorithm
by broquaint
in thread Weird "soundex" algorithm
by giulienk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |