http://qs321.pair.com?node_id=287405


in reply to Weird "soundex" algorithm

sub weirdex { local $_ = shift; tr/a-zA-Z//dc; tr/a-zA-Z//s; m/[aeiou]/g and substr($_, pos) =~ s/[aieuo]//g; $_; } print "$_ - ", weirdex($_), $/ for "giulienk", "larry wall", "etheroskedasticity"; __output__ giulienk - gilnk larry wall - larywl etheroskedasticity - ethrskdstcty
tr//, m// and s///, pos and substr are your friends :)
HTH

_________
broquaint