Simple script which will fetch latest delegated IP, filter it by country (this script only returned IP registered to Malaysian entity), and return the complete address in CIDR. Tested only with APNIC, so might need modification for use with other registry.