Net::CIDR::MobileJP repo
Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Net/CIDR
share
t
xt
.gitignore
.shipit
Changes
MANIFEST
MANIFEST.SKIP
Makefile.PL
README
README.mkdn
apache_conf.tt
net-cidr-mobilejp-scraper.pl

README.mkdn

NAME

Net::CIDR::MobileJP - mobile ip address in Japan

SYNOPSIS

use Net::CIDR::MobileJP;
my $cidr = Net::CIDR::MobileJP->new('net-cidr-mobile-jp.yaml');
$cidr->get_carrier('222.7.56.248');
# => 'E'

DESCRIPTION

Net::CIDR::MobileJP is an utility to detect an ip address is mobile (cellular) ip address or not.

METHODS

new

my $cidr = Net::CIDR::MobileJP->new('net-cidr-mobile-jp.yaml');  # from yaml
my $cidr = Net::CIDR::MobileJP->new({E => ['59.135.38.128/25'], ...});

create new instance.

The argument is 'path to yaml' or 'raw data'.

get_carrier

$cidr->get_carrier('222.7.56.248');

Get the career name from IP address.

Carrier name is compatible with HTTP::MobileAgent.

AUTHORS

Tokuhiro Matsuno C<< >> Jiro Nishiguchi

THANKS TO

Tatsuhiko Miyagawa Masayoshi Sekimura HIROSE, Masaaki

SEE ALSO

http://d.hatena.ne.jp/spiritloose/20061010/1160471510

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.