Re: qr() and escaping a RegEx string

2007-10-27 Thread yitzle
Thanks. That answers my question! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: qr() and escaping a RegEx string

2007-10-27 Thread John W . Krahn
On Saturday 27 October 2007 21:18, yitzle wrote: > I want to search some text for a user provided string. > I was getting input and escaping it with qr(). I then used the > qr()'ed value as input to my grep. > However, I realized that qr() works too well for my pursposes. I want > the user input to

Re: qr() and escaping a RegEx string

2007-10-27 Thread Gunnar Hjalmarsson
yitzle wrote: I want to search some text for a user provided string. I was getting input and escaping it with qr(). I then used the qr()'ed value as input to my grep. However, I realized that qr() works too well for my pursposes. I want the user input to be interpretted as a string literal, not a