CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Adding extra char before spaces in quotes

 



dendro
New User

Apr 22, 2011, 3:05 AM

Post #1 of 2 (412 views)
Adding extra char before spaces in quotes Can't Post

Hi,

I need a perl (one liner?) which will add \ before spaces beetwen ' chars. For example:

command arg0='na me' arg1='oth r'

after modification should look like

command arg0='na\ me' arg1='oth\ r'

Is it possible to do it?


miller
User

Apr 22, 2011, 10:00 AM

Post #2 of 2 (405 views)
Re: [dendro] Adding extra char before spaces in quotes [In reply to] Can't Post

Don't double post your questions mate.

I've answered in the regex section of the forums:

http://perlguru.com/gforum.cgi?post=56299

- Miller


(This post was edited by miller on Apr 22, 2011, 10:00 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives