if ( $var =~ /hello/ ) { $first = "hello"; $second = "world" }