Help for this page

Select Code to Download


  1. or download this
    $pattern = qr/A/;
    if ('a' =~ m/$pattern/i) {
    ...
    } else {
       print("No match (case-sensitive)\n");
    }
    
  2. or download this
    $pattern = qr/A/;
    if ('a' =~ $pattern) {
    ...
    } else {
       print("No match (case-sensitive)\n");
    }