in reply to Re: Pig Latin
in thread Pig Latin
Bonus points for guessing the cliche phrase I tested this with. <grin>
cheers,#!/usr/bin/perl -w use strict; while(<>) { s{ \b(qu|[bcdfghjklmpnrstvwxyz]*)([aeiou]+)(\w*) } { if($1) {$2.$3.$1.'ay'} else {$2.$3."way"} }egix; print; } # END
|
---|