{ my $notvowel=qr/[^aeiou_]/i; sub igpay_atinlay { local $_=shift; s[(\w+)] { local $_=$1; s/^($notvowel+)(.*)/$2$1ay/ or s/$/yay/; $_; }ge; $_; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pig Latin
by danger (Priest) on Mar 13, 2001 at 12:13 UTC | |
|
Re: Pig Latin
by Adam (Vicar) on Mar 13, 2001 at 11:35 UTC |