Help for this page

Select Code to Download


  1. or download this
    sub isValidIP {
       return (shift =~ m/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ and (($1|$2|$3|$4)
    + < 256));
    }
    
  2. or download this
       return (shift =~ m/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ and not (($1|$2|$3
    +|$4) > 255));