/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Untaint-telephone/blib/lib/CGI/Untaint/telephone.pm


NAME

CGI::Untaint::telephone


SYNOPSIS

  # use with CGI::Untaint
  my $untainter = CGI::Untaint->new( $q->Vars );
  $untainter->extract(-as_telephone => 'mobile');


DESCRIPTION

A plugin for CGI::Untaint, this attempts to validate input as looking vaguely like a telephone number.

Numbers may optionally start with a +, and may contain dots and dashes, which will be stripped out.

TODO: Ensure that dots and dashes aren't allowed next to each other, and nor should they be the only content in the number.


SEE ALSO

CGI::Untaint


AUTHOR

Toby Corkindale, <cpan@corkindale.net>


COPYRIGHT AND LICENSE

Copyright © 2006 by Toby Corkindale

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