Someone suggested to me that I learn Python. So I cooked up a quick English-to-Pythonese translator in Perl, and I'm all set.
ssss+s.s.S.g+s.[^S\\s].s.g+s.sss.sSs.g+ssss
And look, the perl happens to be valid Pythonese as well. SssSSss. If you need help figuring this one out, here's some documentation as well as a demonstration:
$ alias python='perl -lpe ssss+s.s.S.g+s.[^S\\s].s.g+s.sss.sSs.g+ssss' $ perldoc -f s | python SsSs sSs SssSsSssSsss sSssSssSs Sss sSssSss $
If anyone can figure out a way to get rid of the "g"s that would be great.

Later

--D


/usr/bin/perl '-nemap$.%$_||redo,2..$.++;print$.--'

Replies are listed 'Best First'.
Re: Learn Python
by bruno (Friar) on Mar 31, 2009 at 16:11 UTC
    You should have looked in CPAN first.