RE: literal to regex

2002-06-13 Thread Shishir K. Singh
Think you need to use \Q$string\E -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 11:05 AM To: Beginners (E-mail) Subject: literal to regex I want to convert a bunch of strings to regexs but I want all special characters to be

Re: literal to regex

2002-06-13 Thread Jenda Krynicky
From: Nikola Janceski [EMAIL PROTECTED] I want to convert a bunch of strings to regexs but I want all special characters to be interpreted as themselves literally. so . will be \. and * will \*. so what do I need to change here: my @idl_object_ext = map { qr/$_/ } qw( _g.h s_g.cc