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: Kevin Rodgers
Subject: Re: Running Perl Scripts in Emacs (on buffer)
Date: Tue, 16 Sep 2003 17:12:59 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Dan Anderson wrote:

Is it possible to execute a perl script on a buffer?  (Whether it's
through something like M-x perl-script or binding the perl script to a
lisp function).

Does the buffer contain the script itself or the data you want to script
to read as standard input?  Either way, you want to use `C-x h' to mark
the whole buffer as the region, then `M-|' to pipe it to a program
(either the perl interpreter itself, or a Perl script).


--
Kevin Rodgers



reply via email to

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