From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: For text processing, which is more powerful, emacs or perl? Date: Sat, 19 Dec 2020 20:17:49 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37119"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 19 13:18:47 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqbCA-0009Y7-Af for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 13:18:46 +0100 Original-Received: from localhost ([::1]:58910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqbC8-000170-08 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 07:18:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqbBU-00016n-1I for help-gnu-emacs@gnu.org; Sat, 19 Dec 2020 07:18:04 -0500 Original-Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]:46250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqbBS-0000wd-6B for help-gnu-emacs@gnu.org; Sat, 19 Dec 2020 07:18:03 -0500 Original-Received: by mail-yb1-xb2c.google.com with SMTP id w135so4454197ybg.13 for ; Sat, 19 Dec 2020 04:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jnNtpkyXqVXmdbba6j2B1MC8oajj4eF5U+fhgiG0caQ=; b=VD9xh0LGQp5uoicOQHVq0z/lgiwHXd9G00dqmbNumc1jJqBAPAFF0EDB+hHGHn7OoI bhLn1VYisO96BFD3D8GQFZR6/rBfBnjgdGaAdqo4eDXKyLdZ6J2XPH5LWpIlUy848YEZ PcPd9xTvgPg3jfjQLDPcdsasChhX0KKnwvlsdIlbeTuLbMZlobKd7uG+lIRz4myUteTt 7xtfJxxpOlzQP1MvqCoGAcyRYCsjwjRa8P3lAX8BHmZGnIpGgLFZuWKojlK0HHERZRjY nIPZvQ13EG924DLv0KIWPlFvRwgkD9w6n7NIO2SvSKe7lPzeJRKneDY6NpgwXhiBcyFh ROnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jnNtpkyXqVXmdbba6j2B1MC8oajj4eF5U+fhgiG0caQ=; b=dCj2Nu6QevyfA2lillwfxv7VH0jdgt144Xe3e99LSpVlvqVuREdji7jDnKgOWII4db brxDukn+9lsH70mz0BqRW0w9npCSaOFoGbZA+hquSEF2NSOzv4QB8pldk8HinFpttmPi s87oT7lPCIswoijE1S8I0th6+cLZPWEQaBUlFvjKpXWOsv4THruGqUjRBBZNEoBGonlX ptNXf7dMkIofiS98AuC9/Fw/OdY4l12Op6iOtQWNSPc6+KpkOM83I+ZX6G2p6o63kr6p +ocveYArkik96jNbJRW8hG3tfIgRyXuK+wgTS8eT5FxsKuC2kTcDGR1kxxexNCuBopPA arUQ== X-Gm-Message-State: AOAM532nIp6V+MvrgY6WwEeG3wLpzuStHB1yhQXoU5h88NeX4BeQbEfy gPW4014pAAt7JlGy+IBkNfbWU22ef5HEmAjcPvc= X-Google-Smtp-Source: ABdhPJxCjKi77BN9uaDEDiOQ6vmLMJ/8iYmed1VdOkZEkJvT1bHtRAAPlYypPf3sC+FMbkfbp8dH0YdpgFLodpRemEA= X-Received: by 2002:a25:bd83:: with SMTP id f3mr11941985ybh.373.1608380280986; Sat, 19 Dec 2020 04:18:00 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=hongyi.zhao@gmail.com; helo=mail-yb1-xb2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126570 Archived-At: On Sat, Dec 19, 2020 at 5:16 PM Jean Louis wrote: > > * Hongyi Zhao [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. 1. What about use emacs as an IDE to debug perl code? 2. Nowadays, it seems that many packages on cpan cannot be updated in time like those packages on pypi for python, so I think whether this means that Perl is obsolete. -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic Vocational and Technical University NO. 552 North Gangtie Road, Xingtai, China