Use the 's' option at the end of your regex after the closing '/'.
 
$var =~ /match\nsomething\nelse/s;
 
read 'perldoc perlre' for more about regexes.
 
Also, please reply to the list next time, because I might not be at my
desk or able to reply, and someone  else probably will.


  _____  

From: Balaji Thoguluva [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 06, 2004 12:07 PM
To: Tim Johnson
Subject: RE: Reg. string matching using reg-exp


Thanks Tim Johnson. I removed the /r/n from the reg-ex and it works. I
have another question. How to assign a multiline string or string having
many lines(strings having \n) to a $string-variable?. In C, there is a
"\" operator.
 
Thanks for your help,
Balaji
 

Reply via email to