WWW::MelissaData::PhoneLocation - Provides an interface to MelissaData's free phone location lookup service
use WWW::MelissaData::PhoneLocation; my $loc = WWW::MelissaData::PhoneLocation->new; my $phone = $loc->query('4079347639'); # 407-W-DISNEY (Disney Reservations) use Data::Dumper; print Dumper($phone);
Put in a phone number and it will give you the city, state, telco, and other assorted data for that number. The data comes from MelissaData.com. This only provides data for NANPA phone numbers (US/Canada).
Creates WWW::MelissaData::PhoneLocation object.
Queries the site. Provide a phone number as the only argument.
Do not include a country code. Do not provide a "1" prefix. Use only the ten-digit phone number. It is okay to include hyphens/dashes/etc; non-digit characters will be removed automatically.
Copyright (C) 2009 Dusty Wilson, <dusty@megagram.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.
To install WWW::MelissaData::PhoneLocation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::MelissaData::PhoneLocation
CPAN shell
perl -MCPAN -e shell install WWW::MelissaData::PhoneLocation
For more information on module installation, please visit the detailed CPAN module installation guide.