in reply to WWW::MapBlast module

Your code looks right to me. It's just that the module itself is b0rked. The most recent version of the module was released in July 2001. It attempts to read data from a website that was acquired by Microsoft and shut down in 2002.

If you only need UK data, take a look at these:

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: WWW::MapBlast module
by maheshkumar (Sexton) on Jul 18, 2012 at 17:44 UTC

    Any ideas on how can I find the longitiude and latitude from the IPs that I have?

      E14NS is a postcode, not an IP address. If you want to get longitude and latitude from an IP address, you should be aware that in the general case it cannot be done. When you get assigned a block of IP addresses, you are not compelled to tell anybody the geographic location from which they will be used; whatsmore proxies can hide the true IP address of the end-user.

      That said, through a combination of techniques, MaxMind's GeoIP database does a pretty good job of mapping IP addresses to locations that works in a large majority of cases.

      perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'