$str = "()"; if( $str =~ s//(?{ print $1 })<\/ref>/ ){ print "Match was found." . "\n"; } print $str . "\n"; #### Match was found. ((?{ print cit314-1 cit314-2 cit314-3 cit314-4 cit314-5 }))
## Match was found. ((?{ print cit314-1 cit314-2 cit314-3 cit314-4 cit314-5 }))