Data::Faker::StreetAddress(3pm) User Contributed Perl Documentation Data::Faker::StreetAddress(3pm)NAME
Data::Faker::StreetAddress - Data::Faker plugin
SYNOPSIS AND USAGE
See Data::Faker
DATA PROVIDERS
us_zip_code
Return a random zip or zip+4 zip code in the US zip code format. Note that this is not necessarily a valid zip code, just a 5 or 9
digit number in the correct format.
us_state
Return a random US state name.
us_state_abbr
Return a random US state abbreviation. (Includes US Territories and AE, AA, AP military designations.)
From the USPS list at http://www.usps.com/ncsc/lookups/usps_abbreviations.html
street_suffix
Return a random street suffix (Drive, Street, Road, etc.)
From the USPS list at http://www.usps.com/ncsc/lookups/usps_abbreviations.html
street_name
Return a fake street name.
street_address
Return a fake street address.
secondary_unit_designator
Return a random secondary unit designator, with a range if needed (secondary unit designators are things like apartment number,
building number, suite, penthouse, etc that differentiate different units with a common address.)
secondary_unit_number
Return a random secondary unit number, for the secondary unit designators that take ranges.
SEE ALSO
Data::Faker
AUTHOR
Jason Kohles, <email@jasonkohles.com>
COPYRIGHT AND LICENSE
Copyright 2004-2005 by Jason Kohles
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2005-07-14 Data::Faker::StreetAddress(3pm)
Check Out this Related Man Page
Locale::US(3pm) User Contributed Perl Documentation Locale::US(3pm)NAME
Locale::US - two letter codes for state identification in the United States and vice versa.
SYNOPSIS
use Locale::US;
my $u = Locale::US->new;
my $state = $u->{code2state}{$code};
my $code = $u->{state2code}{$state};
my @state = $u->all_state_names;
my @code = $u->all_state_codes;
ABSTRACT
Map from US two-letter codes to states and vice versa.
DESCRIPTION
MAPPING
$self->{code2state}
This is a hashref which has two-letter state names as the key and the long name as the value.
$self->{state2code}
This is a hashref which has the long nameas the key and the two-letter state name as the value.
DUMPING
$self->all_state_names
Returns an array (not arrayref) of all state names in alphabetical form
$self->all_state_codes
Returns an array (not arrayref) of all state codes in alphabetical form.
KNOWN BUGS AND LIMITATIONS
o The state name is returned in "uc()" format.
o neither hash is strict, though they should be.
SEE ALSO
Locale::Country
Locale::Country
Abbreviations
<http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm>
Online file with the USPS two-letter codes for the United States and its possessions.
AUXILIARY CODE:
lynx -dump http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm > kruft.txt
kruft2codes.pl
COPYRIGHT INFO
Copyright (c) 2002 - $present Terrence Brannon.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
License: GPL, Artistic, available in the Debian Linux Distribution at /usr/share/common-licenses/{GPL,Artistic}
AUTHOR
T. M. Brannon, <tbone@cpan.org>
PATCHES
Thanks to stevet AT ibrinc for a patch about second call to new failing.
perl v5.12.4 2011-08-03 Locale::US(3pm)
Hi,
I want to add two new lines to a file.
I have:
dn: uid=beele,ou=medewerker,dc=hva,dc=nl
street: Wibautstraat 2-4
dn: uid=beelx,ou=medewerker,dc=hva,dc=nl
street: Wibautstraat 2-4
I want to make:
dn: uid=beele,ou=medewerker,dc=hva,dc=nl
changetype: modify
replace: street
street:... (3 Replies)
If I have a flatfile like vote.dat
NAME | SEX | DATETIME | VOTE
Jason|M|2005-12-10 08.01.30|Y
Benson|M|2005-12-10 12.01.00|Y
William|M|2005-12-10 08.01.09|Y
Nick|M|2005-12-11 09.01.07|Y
Pascal|M|2005-12-11 01.01.06|Y
Mickey|F|2005-12-12 12.01.30|Y
How can I write a korn script to have... (4 Replies)
This is how my input file is ( comma sepertated ):-
L,id,name,address,city,measure_id_1,measrure_id_qty_1,measure_id_2,measure_id_qty_2
D,123,vvc,wwwew wdwe,hou,zip,77057,tel,832
L,id,name,address,city,measure_id_1,measrure_id_qty_1
D,222,abc,dsdsd wwew wdwe,ny,zip,77057... (0 Replies)
Hi, Unix experts,
I have a problem about one file. my source file as following:
123, accounting, university street, 23456
124, financing, center street, b suit, 23457
125, information, college street, 23458
above file, 'center street, b suit' should be one field, my file contains more than 50... (6 Replies)
Hi, gunius
I have a post as following
I use one of posted code resolved. code following.
awk -F\, 'NF==5{$3=$3""$4;$4="";sub(/,,/,",")}1' OFS="," infile
I got new problem,
my file contains some null column,
target should be
126,,shepperd street 203#, 23459
using current code, I got ... (4 Replies)
Hi List,
Could someone please point me into the right direction with the following:
I have a file containing a list of street addresses.
I need to sort all the street addresses with the same number to a new file containing the street name and corresponding number.
So:
Strawinskylaan... (3 Replies)
i want to zip the 2GB file
and send it via email from unix machine using uuencode.
could you please suggest whether it will possible or not
and also command to do it. (3 Replies)
The standard return code when everything goes right is 0, but what about using any other number something happened? Are there "ranges" depending on the kind of problem you want to express or is totally up to the programmer? (3 Replies)