On May 10, Jonathan E. Paton said:

>> >and hence the magic of using single quotes doesn't work as you'd expect.
>> >It does get you out of other trouble though:
>> >
>> >s'$%@|'replacement';
>> >
>> >where you'd otherwise spend all day backslashing things.
>> 
>> All single quotes do is stop INTERPOLATION.  Interpolation is not the
>> issue with regex metacharacters.
>
>This is going off-topic... may I take the oppertunity to remind Jafhy
>that he should recognise my name by now?  If being subscribed to the
>[EMAIL PROTECTED] list makes me a beginner... then I should qualify
>to ask for help - and boy do I have one >:)

I'm not necessarily speaking to you -- I'm reminding anyone reading these
messages that at no point do single quotes stop a regex from being a
regex.

[snip credentials]

>  I know what INTERPOLATION is, and the difference and similarities
>  between q, qq, qw, '' and "" etc.  Maybe going on to talk about
>  s''' didn't follow on from the topic very well.  Japhy, assume I
>  know a lot more than I seem to let on!  :-)

I was just afraid someone would come to the wrong conclusion based on your
sentences.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to