From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Running Perl Scripts in Emacs (on buffer) Date: Wed, 08 Oct 2003 15:44:55 GMT Organization: Level(3) Communications, Woburn, MA Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <86ad8mx6wo.fsf@slowfox.dyndns.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1065628461 8966 80.91.224.253 (8 Oct 2003 15:54:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2003 15:54:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 17:54:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A7Gdm-0000Zd-00 for ; Wed, 08 Oct 2003 17:54:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A7GW1-0005bq-TD for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2003 11:46:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!crtntx1-snh1.gtei.net!news.gtei.net!news.level3.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Original-Lines: 31 Original-NNTP-Posting-Host: 171.78.176.30 Original-X-Trace: news.level3.com 1065627895 171.78.176.30 (Wed, 08 Oct 2003 15:44:55 GMT) Original-NNTP-Posting-Date: Wed, 08 Oct 2003 15:44:55 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:117138 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13066 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13066 In article , Artist wrote: >Kai Grossjohann wrote in message >news:<86ad8mx6wo.fsf@slowfox.dyndns.org>... >> Dan Anderson writes: >> >> > No. Without going into a shell and saving (or trying to convert my Perl >> > scripts into elisp) I want to just run an arbitrary perl script on a >> > buffer. >> >> C-x h M-| foo.pl RET >> >> Does this help? > >How do you supply the buffer data to your perl program in this case? >What would be the arguments? The buffer data will be piped to the script's standard input. M-| prompts for a command line to execute, so you type the arguments in that prompt. > >Let's say I have a file and I like to replace some words via perl >program, how I would do that? C-x h M-| scriptname oldword newword -- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.