NAME

Telephone::Mnemonic::US::Number - Helper module that performs basic number manipulations

SYNOPSIS

  use Telephone::Mnemonic::US::Number;

DESCRIPTION

 This module perfroms format converations on US telephone numbers

FUNCTIONS

partial_codes

 Input: a sting like '(703) 222 3333'
 Output: a hash with area code, station code, and house code. Returns undef of failure.

area_code

 Input: a sting like '(703) 222 3333'
 Output: a string like '222 3333', or undef on failure

station_code

 Input: a sting like '(703) 222 3333'
 Output: a string like '222', or undef on failure

house_code

 Input: a sting like '(703) 222 3333'
 Output: a string like '222', or undef on failure

without_area_code

 Input: a sting like '(703) 222 3333'
 Output: a string like '222 3333', or undef on failure

well_formed_p

 Input: a sting like '(703) 222 3333'
 Output: a boolean

_filter_numbers

 Input: a sting like '(703)-222.3333'
 Output: a string like '7032223333'

to_digits

 Input: a sting like '(703)-222.3333'
 Output: a string like '7032223333'

to_tel_digits

 Input: a sting like 've7is6n'
 Output: a string like '8374766'

beautify Input: a sting like '703-2223333' Output: a string like '(703) 222 3333'

EXPORT

None by default.

SEE ALSO

Mention other useful documentation such as the documentation of related modules or operating system documentation (such as man pages in UNIX), or any relevant external documentation such as RFCs or standards.

If you have a mailing list set up for your module, mention it here.

If you have a web site set up for your module, mention it here.

AUTHOR

ioannis, <ioannis@248.218.218.dial1.washington2.level3.net>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by ioannis

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.1 or, at your option, any later version of Perl 5 you may have available.