On Dec 17, Hemond, Steve said: >Actually, I have to test two conditions to get into a block, > >If the strings found are either "one two" or "two three", go ahead. > >if ($text =~ /one two/ or /two three/)
That code is the same as if (($text =~ /one two/) or ($_ =~ /two three/)) { ... } You want either if ($text =~ /one two/ or $text =~ /two three/) { ... } or if ($text =~ /one two|two three/) { ... } -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>