Help for this page

Select Code to Download


  1. or download this
    if (join('','a'..'m') =~ qr/$sv/ && $sv =~/^[a-m]{5}$/){
        print "Matched\n";
    }
    
  2. or download this
    sub match_range {
        my ($string, $start, $end, $length) = @_;
    ...
        if ($string !~ /^[${start}-${end}]{$length}$/) { return 0; }
        return 1;
    }