my $text = 'The dog is black cat is white and the fox does not like the cow or pig'; print 'match found', "\n" if ( $text =~ /dog/ || /cow/ || /pig/ );