- COPYRIGHT AND LICENSE
Faker::Provider::en_US::Address - Faker Localized en_US Address Provider
use Faker; use Faker::Provider::en_US::Address; my $faker = Faker->new(locale => 'en_US'); my $address = Faker::Provider::en_US::Address->new(factory => $faker); say $address->lines;
Faker::Provider::en_US::Address is a Faker provider localized under en_US, which provides fake address data. Faker::Provider::en_US::Address inherits all attributes and methods from Faker::Provider::Address and implements the following new ones. Note: This is an early release available for testing and feedback and as such is subject to change.
$address->city_prefix; # West # South # South
The city_prefix method generates a random city prefix, common in the en_US locale.
$address->country_name; # Tonga # Norfolk Island # Nicaragua
The country_name method generates a random country name.
$address->line2 # Suite 709 # Suite 621 # Suite 907
The line2 method generates a random address string containing a common secondary address designation, common in the en_US locale.
$address->state_abbr; # WV # ND # CT
The state_abbr method generates a random abbreviated state string, common in the en_US locale.
$address->state_name; # Alaska # Washington # Maryland
The state_name method generates a random state string, common in the en_US locale.
Al Newkirk <firstname.lastname@example.org>
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.