develooper Front page | perl.perl6.language | Postings from September 2000

goof - RFC 328 (v1) Single quotes don't interpolate \' and \\

From:
nick
Date:
September 29, 2000 07:22
Subject:
goof - RFC 328 (v1) Single quotes don't interpolate \' and \\
Message ID:
20000929152248.E51277@plum.flirble.org
I goofed. (EWRONGLIST)

I realise now that I should have said that RFC 328 (and 327) should have
been on this list, not perl-language-data
I had what I thought was a good look at previous RFCs but managed to miss
RFC226 (Selective interpolation in single quotish context.)

What I wanted comments about (I'm not sure if I favour it and so far 2
people have said they don't) is whether to be very strict on

	q//  ==   ''  ==  *NO* interpolation

[Nathan Wiger,
 http://www.mail-archive.com/perl6-language@perl.org/msg04005.html
]

and hence "cure"

	Does it strike anyone else as odd that 'foo\\bar' eq 'foo\bar'?


[Steve Fink,
 http://www.mail-archive.com/perl6-language@perl.org/msg04008.html
]

by removing all \ escapes from '' and q(), to make perl's use of '' just like
/bin/sh, and identical to how perl treats <<'HERE'


I've asked the librarian what I should do, but as there's little time left
to demolish this idea, I've sent this mail here now.

Nicholas Clark



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About