From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Alberto_Sim=C3=B5es?= Newsgroups: gmane.emacs.help Subject: Perldo in Emacs Date: Wed, 2 Mar 2011 21:17:38 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299100689 28373 80.91.229.12 (2 Mar 2011 21:18:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 21:18:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 02 22:18:04 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PutQq-0007sf-O2 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 22:18:04 +0100 Original-Received: from localhost ([127.0.0.1]:43325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PutQq-0002Ea-6i for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 16:18:04 -0500 Original-Received: from [140.186.70.92] (port=58979 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PutQS-0002BX-KB for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 16:17:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PutQR-0000RX-6C for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 16:17:40 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:64436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PutQR-0000RS-3j for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 16:17:39 -0500 Original-Received: by vws13 with SMTP id 13so448887vws.0 for ; Wed, 02 Mar 2011 13:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=VlbOkI4bZfTuqzMmxUZyzThn3Bf6ty1HS2EyjQVKkxY=; b=sRF6DRoijWcD9/PSycQ5HyC5Jz69eK/jQwN03KVknKORTUl64efseLCWb8rdblXZ3a xqLy20Fpp/0iZrK189KpLHYNXhIN74zX0guzi8yKkI/8at7N6B1DMX8v7CPkbTSUCRSc QjIhheh/9cLnan5XXzgnt9CFkPDBurnFgqMu8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=PsAgSFo/5kJJ+gaIzIlDmtUrEx2WK1FpGVTuOYIbMs/20GNXjt8BfDV84EYP+qFqjM HA8Tka/ksXyz7wxUURd/WzvB2yNsxNzTzwznMvuODydwfdypBAp9Js7h2b/ldIon+lOP ZPv/AwSsLq+wZ7DfeZFH+ENnpjZrq7ly3n7k4= Original-Received: by 10.52.158.231 with SMTP id wx7mr551971vdb.41.1299100658327; Wed, 02 Mar 2011 13:17:38 -0800 (PST) Original-Received: by 10.220.180.73 with HTTP; Wed, 2 Mar 2011 13:17:38 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79708 Archived-At: Hello vim has a nice thing, it lets the user to use a command named 'perldo', supply some code to it, and vim will process all the file with perl, and include the output. My doubt is if there is something similar in Perl (I know we have send through pipe, but was expecting some dedicated method). If not, it should not be difficult to implement, but I really need some help with the list. It is a matter of running the buffer with perl -i -pe ' ... ' < buffer > newbuffer where ... is the perl code instroduced by the user in emacs (minibuffer, probably). Thanks ambs --=20 Alberto Sim=C3=B5es