Subject: | Records do ont contain valid data |
The following should say it all:
#! perl
use Geo::IP;
warn "Version: $Geo::IP::VERSION";
my $address = "leegoddard.com";
my $gi = Geo::IP->new(GEOIP_STANDARD);
warn "Country by address: ", $gi->country_name_by_name($address);
my $record = $gi->record_by_name( $address);
warn $record;
warn "Country:", $record->country_name,
# Cleveryly the output of the last changes depending upon
# the content of the calling file.
# Bug or feature?
__END__
Output follows:
Version: 1.12 at C:\test.pl line 2.
Country by address: United Kingdom at C:\test.pl line 6.
Geo::IP::Record=SCALAR(0x15d547c) at C:\test.pl line 9.
Country:French Guiana at C:\test.pl line 11.
Tool completed successfully