Help for this page

Select Code to Download


  1. or download this
    $var1 = "This (is)- my first string";
    $var2 = "This (is)- my first string";
    
  2. or download this
    if ($var1 =~ /$var2/) {
      print "Matched";
    } else {
      print "Did not match";
    }