Catalyst::Plugin::Geography Perl module can retrieve geographical information.
SYNOPSIS
use Catalyst qw[Geography];
# Retrieve country or code from current user
print $c->geography->country;
print $c->geography->code;
# Retrieve country or code from IP
print $c->geography->country('66.102.9.99');
print $c->geography->code('66.102.9.99');
# Retrieve country or code from hostname
print $c->geography->country('www.google.com');
print $c->geography->code('www.google.com');
# Retrieve country from code
print $c->geography->country('US');
# Alias
print $c->geo->code('www.google.com');
print $c->geo->country('US');
Retrieve geographical country and country codes from users.
METHODS
geo
alias to geography
geography
Will create or return a Catalyst::Plugin::Geography::Implementation object.
Product's homepage
Requirements:
· Perl