|new();||You can pass an arg of ignore_bad_combo as true if you wish to ignore any defined bad AAAA-GG combinations. Things will be on the list until I see otherwise on the SSA website or some other means of proof.|
|valid_ssn($ssn);||The SSN can be of any format (111-11-1111, 111111111, etc...). All non-digits are stripped.|
|valid_area($ssn);||This will see if the area is valid by using the ranges in use by the SSA. You can pass this method a full SSN, or just the 3 digit area.|
Will make sure that the group isnt 00, as well as check the
AREA/GROUP combo for known invalid ones, and the SSA High Groups.
If given a 2 digit GROUP, it will only make sure that that GROUP isnt 00.
If given a number in length above 2 digits, it will attempt to split into an AREA and GROUP and do further validation.
This is currently only making sure the serial isnt 0000, and thats all it
will ever do. From my reading, 0000 is the only non-valid serial.
This is also semi-useful right now, as it expects only 4 digits. Later it will take both 4 digits or a full serial.
|get_state($ssn);||You can give this a full SSN or 3 digit area. It will return the state, if known, from where the given area is issued. Invalid areas will return false.|
|get_description($ssn);||If there is a description associated with the state or region, this will return it.. or will return an empty string.|
* Change how the data is stored. I dont like how it is done now... but works.
* Find out state(s) for areas which arent known right now.
* Automate this module almost as completely as possible for
* Consider SSN::Validate::SSDI for Social Security Death Index (SSDI)
* Possibly change how data is stored (first on TODO), and provide my
extract script for people to run on their own. This way, maybe they
could update the SSA changes on their own, instead of being dependant
on the module for this, or having to update the module when the SSA makes changes. I think I like this idea.
None by default.
Please let me know if something doesnt work as expected.
If you are feeling nice, and would like quicker fixes, please provide a diff against Validate.pm and the appropriate test file(s). If you are making something invalid which is currently valid, or vice versa, please provide a reference to why the change is needed. Thanks!
Kevin Meltzer, <email@example.com>
SSN::Validate is free software which you can redistribute and/or modify it under the same terms as Perl itself.
<http://www.ssa.gov/foia/stateweb.html>, <http://www.irs.gov/pub/irs-utl/1346atta.pdf>, <http://www.ssa.gov/employer/highgroup.txt>.
|perl v5.20.3||VALIDATE (3)||2009-03-09|