Thanks a lot Dave!!

-----Original Message-----
From: David Gray [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 2:45 PM
To: [EMAIL PROTECTED]
Cc: Shishir K. Singh
Subject: RE: Regex Problem!!- SOS


> if ($var =~ /^$var1/) {

 if($var =~ /^\Q$var1\E/) {

Should solve your problem -- the \Q and \E tell the regex to stop (and
start again) interpolating any regex characters it finds in the
variable.

HTH,

 -dave



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

Reply via email to