NAME
Faker::Provider::en_US::Telephone - Faker Localized en_US Telephone Provider
VERSION
version 0.12
SYNOPSIS
use Faker;
use Faker::Provider::en_US::Telephone;
my $faker = Faker->new(locale => 'en_US');
my $phone = Faker::Provider::en_US::Telephone->new(factory => $faker);
say $phone->number;
DESCRIPTION
Faker::Provider::en_US::Telephone is a Faker provider localized under en_US, which provides fake phone data. Faker::Provider::en_US::Telephone inherits all attributes and methods from Faker::Provider::Telephone and implements the following new ones. Note: This is an early release available for testing and feedback and as such is subject to change.
METHODS
number
$phone->number;
# 01926981135
# 02316835769
# 019-494-2138
# 1-423-443-5891
# 747-776-7241x90468
# 403.744.6597x765
The number method generates a random ficticious telephone number.
AUTHOR
Al Newkirk <anewkirk@ana.io>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.