if ( $string !~ /search patter here/ ) { print ( "didnt find match" ); };