Faker::Provider::en_US::Telephone - Faker Localized en_US Telephone Provider
version 0.12
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;
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.
$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.
Al Newkirk <anewkirk@ana.io>
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.
To install Faker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Faker
CPAN shell
perl -MCPAN -e shell install Faker
For more information on module installation, please visit the detailed CPAN module installation guide.