Help for this page

Select Code to Download


  1. or download this
    if ($var && $var !~ /\D/) {
        # We have a value and it's a number
    }
    
  2. or download this
    sub isNum {
        if ($var && $var !~ /\D/) {
    ...
            return 0;
        }
    }