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