Net::IPFromZip- find all ip addresses associated with a specific zip code
use Net::IPFromZip qw/reverse/; #assuming that the .csv file is either in the local directory or in /usr/local/share/GeoIP my @ips = @{ reverse("59715") }; #if not my @ips = @{ reverse("/path/to/file.csv", "59715") };
This module uses the GeoIP2 database in the form of CSV files. It takes in a zip code, being that a zip code is more accurate than an area code or city name, and that a zip code is the most accurate input the free GeoIP2 databases take.
reverse - the main function
Being that the only meat of this module is the main reverse function, only one function is exported
http://github.com/jk33/reverse-geo-ip - repository containing compressed csv databases, the originaly reverseFromCSV.pl file, and various misc scripts
http://github.com/jk33/net-ipfromzip - repository with all the perl module source
John Kennedy, <jgk@cpan.org>
Copyright (C) 2015 by John Kennedy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.
To install Net::IPFromZip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::IPFromZip
CPAN shell
perl -MCPAN -e shell install Net::IPFromZip
For more information on module installation, please visit the detailed CPAN module installation guide.