XP is just a number | |
PerlMonks |
Re: Pig Latinby Anonymous Monk |
on Feb 17, 2000 at 01:58 UTC ( [id://3590]=note: print w/replies, xml ) | Need Help?? |
(Sorry for the previous post. I forgot to add the CODE tag.)
A more concise (not to mention obfuscated) way to do it:
s@#(\w)(\w+)@#$1=~m#[aeiou]#i?$1.$2.'way':$1.$2.$1.'ay'@#egi;
In Section
Seekers of Perl Wisdom
|
|