in reply to Geographic lookup via IP

IP is found in $ENV{REMOTE_ADDR}. To see what else you have available, I suggest:
use CGI; my $q = new CGI; print $q->header; for my $k (sort keys %ENV){ print "$k=$ENV{$k}<BR>\n"; }
Can't really help much with the geographical stuff.