Catalyst::Plugin::Geography - Retrieve geographical information
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.
alias to geography
Will create or return a Catalyst::Plugin::Geography::Implementation object.
Catalyst Catalyst::Plugin::Geography::Implementation.
Christian Hansen, ch@ngmedia.com Marcus Ramberg, mramberg@cpan.org
ch@ngmedia.com
mramberg@cpan.org
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
To install Catalyst::Plugin::Geography, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Geography
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Geography
For more information on module installation, please visit the detailed CPAN module installation guide.