Help for this page

Select Code to Download


  1. or download this
    if $str =~ /\D/ { print "non-digit" }
    
  2. or download this
    if $str !~ /^\d\d$/ { print "wrong length or contains non-digits" }