Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Re: Weird "soundex" algorithmby broquaint (Abbot) |
on Aug 28, 2003 at 23:58 UTC ( [id://287556]=note: print w/replies, xml ) | Need Help?? |
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. HTH
_________
In Section
Seekers of Perl Wisdom
|
|