From: Jorgen Grahn <grahn+nntp@snipabacken.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Perldo in Emacs
Date: 3 Mar 2011 09:45:54 GMT [thread overview]
Message-ID: <slrnimuoqh.15e.grahn+nntp@frailea.sa.invalid> (raw)
In-Reply-To: mailman.0.1299100662.27501.help-gnu-emacs@gnu.org
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 .
next parent reply other threads:[~2011-03-03 9:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.0.1299100662.27501.help-gnu-emacs@gnu.org>
2011-03-03 9:45 ` Jorgen Grahn [this message]
2011-03-02 21:17 Perldo in Emacs Alberto Simões
2011-03-03 4:32 ` Yuri Khan
[not found] ` <mailman.6.1299126767.20537.help-gnu-emacs@gnu.org>
2011-03-03 18:32 ` Vagn Johansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnimuoqh.15e.grahn+nntp@frailea.sa.invalid \
--to=grahn+nntp@snipabacken.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.