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:ssss+s.s.S.g+s.[^S\\s].s.g+s.sss.sSs.g+ssss
If anyone can figure out a way to get rid of the "g"s that would be great.$ 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 $
Later
--D
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Learn Python
by bruno (Friar) on Mar 31, 2009 at 16:11 UTC |