Help for this page

Select Code to Download


  1. or download this
    if (/^-?\d+\.?\d*$/) { print "is a real number\n" }
  2. or download this
    warn "not a decimal number" unless (/^-?\d+\.?\d*$/); #rejects .2