Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Update the current region/buffer in Emacs via Perl

by hossman (Prior)
on Aug 10, 2002 at 07:38 UTC ( #189149=note: print w/ replies, xml ) Need Help??


in reply to Update the current region/buffer in Emacs via Perl

Very cool. VERY cool. But some people may prefer changing the command to this...

(read-from-minibuffer "Replace region command: " '("perl -ple \'\'" . +12 ))

  1. without the -l, you lose any newlines in your buffer
  2. shell-command-on-region seems to use a normal shell, which means the double quotes won't going to protect any variables in your region.


Comment on Re: Update the current region/buffer in Emacs via Perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://189149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-07-04 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls