Faker::Provider::Address - Faker Standard Address Provider
version 0.12
use Faker; use Faker::Provider::Address; my $faker = Faker->new; my $address = Faker::Provider::Address->new(factory => $faker); say $address->lines;
Faker::Provider::Address is a Faker provider which provides fake address data. Note: This is an early release available for testing and feedback and as such is subject to change.
$address->line1; # 5474 Blick Street # 5451 Sporer Circle # 7642 Larson Avenue
The line1 method generates a random address string containing a random ficticious building number and street name.
$address->lines; # 5 Okuneva Avenue, Florineford, 46378 # 73 Brakus Parkway, Kentonville, 34829 # 8 Senger Street, Camylleville, 97587
The lines method generates a random address string containing a random ficticious building number, street name, city, and postal code.
$address->number; # 35 # 6 # 1
The number method generates a random ficticious 1, 2, or 4 digit building number.
$address->city_name; # Orantown # Lilianburg # Rodrickford
The city_name method generates a random ficticious city name.
$address->city_suffix; # town # ville # town
The city_suffix method generates a random ficticious city suffix.
$address->latitude; # 88.600763 # 55.138796 # 2554363
The latitude method generates a random ficticious latitude coordinate.
$address->longitude; # -62.811525 # -89.332889 # -73.364117
The longitude method generates a random ficticious longitude coordinate.
$address->postal_code; # 26022-5271 # 12886 # 55783-2207
The postal_code method generates a random ficticious postal code.
$address->street_name; # Smitham Circle # Yundt Street # Tromp Parkway
The street_name method generates a random ficticious street name.
$address->street_suffix; # Circle # Avenue # Circle
The street_suffix method generates a random ficticious street suffix.
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.