Help for this page

Select Code to Download


  1. or download this
    use v5.36;
    use JSON::MaybeXS;
    ...
      chomp;
      &p( find_ip($_) );
    }
    
  2. or download this
    $ perl test.pl country_asn.json 
    Enter IPv4
    Type ^D to terminate
    ...
        min              "\b\b\0",
        start_ip         "8.8.4.0" (dualvar: 8.8)
    }
    
  3. or download this
    CREATE TABLE ip_ranges (
       ...
    ...
    WHERE ipmax >= ? and ipmin <= ?
    ORDER BY ipmax
    LIMIT 1