Help for this page

Select Code to Download


  1. or download this
    param('s1') =~ m/ad/i
    
  2. or download this
    param('s1') =~ /a/i and param('s1') =~ /d/i
    
  3. or download this
    param('s1') =~ /a/i or param('s1') =~ /d/i
    
  4. or download this
    my @list = qw(a b c);
    if (param('s1) =~ /[@list]/xi) {
        print "one of the characters matched"
    }