NAME

Data::Random::Contact::Country::US - US phone number and address data

VERSION

version 0.05

DESCRIPTION

This module provides US country phone and address data.

METHODS

This module provides the following methods:

$country->phone_number()

This returns a phone number like "212-555-1234". The area codes are all valid US area codes. The number prefix will be a random number from 200 to 999.

$country->address()

This returns a hash reference with the following keys:

  • street_1

    The first line of the street address.

  • street_2

    The second line of the street address. This is usually undef.

  • city

    The address's city.

  • region

    The address's state.

  • postal_code

    The address's zip code.

Note that any address component can be undef.

AUTHOR

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)