From: Jos Backus Date: 2002-01-31T09:32:34+09:00 Subject: Re: problems with string interpolation On Wed, Jan 30, 2002 at 07:38:44PM +0900, ts wrote: > J> Slightly off-topic: what's confusing for me personally here is that in a > J> certain P language which I also happen to (have to) use, unlike Ruby, > J> backslashes are _not_ substituted in single-quoted strings. > > Can you give me the name of this P language ? > > I hope this is not > > pigeon% perl -l > print '\\\\\1' > ^D > \\\1 > pigeon% Oh I am such an idiot, I take that back. This P language behaves identically. I was confused about ``\\'' being a special case in both languages: traitor:~% ruby -l print '\n' \n traitor:~% ruby -l print "\n" traitor:~% ruby -l print '\\' \ traitor:~% ruby -l print "\\" \ -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;