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

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

Re: Perldo in Emacs


From: Jorgen Grahn
Subject: Re: Perldo in Emacs
Date: 3 Mar 2011 09:45:54 GMT
User-agent: slrn/pre1.0.0-18 (Linux)

On Wed, 2011-03-02, Alberto Simões wrote:
> 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
                                               ^^^^
You mean Emacs here.

> 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).

Just an observation: I find myself using 'perl -ne' just as often as
'perl -pe', so if vim only supports the former, it's a bit too limited
for my taste.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .


reply via email to

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