On 15/12/12 14:00, Ralph Corderoy wrote:
Those last two 's are starting and ending an empty single-quoted string.
;-)   That said, it works.  These are all equivalent to it.

     s/\'//
     "s/'//"
     's/'\''//'

Hi Ralph,

Normally I find myself replacing underscores or dashes with spaces so it took a swift google and a bit of experimentation to arrive at my effort when I tried the first (and most obvious) one in your list and it bombed! Something to do with the fact that it as already single quoted and the need to break out of that, I gather.

Anyway, your solution was more elegant than mine so I will bear it in mind for the future!

Sean



--
music, film, comics, books, rants and drivel:

www.funkygibbins.me.uk


--
Next meeting:  Bournemouth, Tuesday, 2013-01-08 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to