while(){@x=split;for(@x){$o=/[.,]$/?2:1;$m=substr$_,0,1,''; $e=substr$_,-$o,$o,'';$m.=substr$_,rand(length),1,''while$_;$_="$m$e"} print"@x\n"}