CGI::Untaint::CountyStateProvince - Validate a state, county or province
Version 0.05
CGI::Untaint::CountyStateProvince is a subclass of CGI::Untaint used to validate if the given user data is a valid county/state/province.
This class is not to be instantiated, instead a subclass must be instantiated. For example CGI::Untaint::CountyStateProvince::GB would validate against a British county, CGI::Untaint::CountyStateProvince::US would validate against a US state, and so on.
use CGI::Info; use CGI::Untaint; use CGI::Untaint::CountyStateProvince::GB; my $info = CGI::Info->new(); my $u = CGI::Untaint->new($info->params()); my $csp = $u->extract(-as_CountyStateProvince => 'state'); # $csp will be lower case
Validates the data.
Nigel Horne, <njh at bandsman.co.uk>
<njh at bandsman.co.uk>
Please report any bugs or feature requests to bug-cgi-untaint-csp at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Untaint-CountyStateProvince. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cgi-untaint-csp at rt.cpan.org
CGI::Untaint
You can find documentation for this module with the perldoc command.
perldoc CGI::Untaint::CountyStateProvince
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Untaint-CountyStateProvince
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/CGI-Untaint-CountyStateProvince
CPAN Ratings
http://cpanratings.perl.org/d/CGI-Untaint-CountyStateProvince
Search CPAN
http://search.cpan.org/dist/CGI-Untaint-CountyStateProvince
Copyright 2012 Nigel Horne.
This program is released under the following licence: GPL
To install CGI::Untaint::CountyStateProvince, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Untaint::CountyStateProvince
CPAN shell
perl -MCPAN -e shell install CGI::Untaint::CountyStateProvince
For more information on module installation, please visit the detailed CPAN module installation guide.