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

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

perl-quote.el v.1


From: Kevin Ryde
Subject: perl-quote.el v.1
Date: Fri, 05 Jun 2009 10:44:49 +1000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux)

This is a bit of code I've been using to convert perl strings between
single quotes 'foo' and double quote "foo".

I use it mostly to automatically flip the backslashing needed, so
'xx"yy' -> "xx\"yy" or vice versa.  I've also found the gettext style
__"" -> __('') good because adding parens manually is a bit tedious.
The q{} and qq{} support may be a bit superfluous, and might be
imperfect too.


Attachment: perl-quote.el
Description: application/emacs-lisp

Attachment: perl-quote.el.asc.txt
Description: Text document


reply via email to

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