> -----Original Message----- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 5:11 PM > To: 'Bob Showalter'; 'Shaun Fryer'; Perl Beginners > Subject: RE: evaluating multiple conditions > > > > Oops. I misread the last operator. I should have written > > if($something =~ /^(string0|string1)$/ || $something =~ /string2/){
Still not equivalent. What if $something contains "string1\n"? That'll match your expression, but not the original version. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]