help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running Perl Scripts in Emacs (on buffer)


From: Barry Margolin
Subject: Re: Running Perl Scripts in Emacs (on buffer)
Date: Wed, 08 Oct 2003 15:44:55 GMT

In article <de3ad953.0310072059.7cc70e5d@posting.google.com>,
Artist <googleartist@yahoo.com> wrote:
>Kai Grossjohann <kai.grossjohann@gmx.net> wrote in message
>news:<86ad8mx6wo.fsf@slowfox.dyndns.org>...
>> Dan Anderson <dan@mathjunkies.com> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]