unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: For text processing, which is more powerful, emacs or perl?
Date: Sat, 19 Dec 2020 12:00:50 +0300	[thread overview]
Message-ID: <X93BQqbp/9I0EjD+@protected.rcdrun.com> (raw)
In-Reply-To: <CAGP6POJHK29BStcerr03JvnOmeg_2p5uwXSofJEDG9eD1HVZaQ@mail.gmail.com>

* Hongyi Zhao <hongyi.zhao@gmail.com> [2020-12-19 10:44]:
> It's well known that perl's regexp is very powerful for its capability
> of text processing. So, which is more powerful, emacs or perl, in this
> scenario?

Well it is better to tell what you wish to achieve. What kind of text
do you wish to process?

I was doing many command line processing with Perl, importing data
with Perl, processing text, importing into databases, processing large
programs. It is more for command line processing and programmatic
processing.

Today I do those things with Emacs Lisp so I import CSV data, process
entries, insert into databases. I do not miss Perl today. Emacs Lisp
seem to me simpler now than Perl back then.

You may evaluate this function below:

(info "(elisp) Regular Expressions")

Then research regular expressions in Emacs.

With Emacs I can process in real time and by watching on screen what
is happening. I can undo the process if I made a mistake.

You may use any tools. Including you may combine tools.



  reply	other threads:[~2020-12-19  9:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-19  7:43 For text processing, which is more powerful, emacs or perl? Hongyi Zhao
2020-12-19  9:00 ` Jean Louis [this message]
2020-12-19 12:17   ` Hongyi Zhao
2020-12-19 12:25     ` Jean Louis
2020-12-20  0:04       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-20  1:42         ` Hongyi Zhao
2020-12-20  3:07           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-20  5:31           ` Jean Louis
2020-12-20  6:18             ` Hongyi Zhao
2020-12-20  6:52               ` Jean Louis
2020-12-20  7:49                 ` Hongyi Zhao
2020-12-20 13:42                   ` Jean Louis
2020-12-20  3:03         ` Hongyi Zhao
2020-12-20  3:11           ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-08 16:42       ` Marcin Borkowski
2020-12-19 14:36     ` Harald Jörg
2020-12-20  4:38       ` Jean Louis
2020-12-19 16:01 ` Stefan Monnier
2020-12-20  5:23   ` Jean Louis
2020-12-20  6:17     ` Hongyi Zhao
2020-12-20  6:25       ` Jean Louis
2020-12-20 13:58     ` Stefan Monnier
2020-12-20 14:47       ` tomas
2020-12-20  9:01   ` tomas
2021-10-08 16:52 ` Marcin Borkowski
2021-10-09  1:42   ` Hongyi Zhao
2021-10-10 14:26     ` Emanuel Berg via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X93BQqbp/9I0EjD+@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hongyi.zhao@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).