Help for this page

Select Code to Download


  1. or download this
    # Supports ranges in any number of bytes.
    
    ...
       }
       return 1;
    }
    
  2. or download this
    my $ip_mask = parse_ip_mask('131.202.1.[3-4]');
    
    ...
    131.202.1.3 matches.
    131.202.1.4 matches.
    132.202.1.4 doesn't match.
    
  3. or download this
    my $ip_mask = parse_ip_mask('131.202.1.[3-4]');
    
    ...
    ======
    Found matching ip 131.202.1.3.
    Found matching ip 131.202.1.4.