perl to python
Daniel 'Dang' Griffith
noemail at noemail4u.com
Wed May 12 10:35:34 EDT 2004
On 11 May 2004 12:05:52 GMT, Oliver Fromme <olli at haluter.fromme.com>
wrote:
>Daniel 'Dang' Griffith <noemail at noemail4u.com> wrote:
> > [on sed] One reason
> > to install it is that it's smaller than perl or python; another is
> > that it probably performs the task faster, since it isn't a general
> > purpose state machine;
>
>FWIW, sed _is_ a state machine, although not really "general
>purpose". It is a programming language with variables, loops
>and conditionals, and I believe it is turing-complete. Most
>of the time it is abused to perform simple search-and-replace
>tasks, though. ;-)
I never used sed for anything but "stream editing", aka search and
replace. Well, if it's turing complete, my apologies to the sed
author(s). :-)
--dang
More information about the Python-list
mailing list