The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CGI::Untaint::uk_postcode - validate a UK postcode

SYNOPSIS

  use CGI::Untaint;
  my $handler = CGI::Untaint->new($q->Vars);

  my $url = $handler->extract( -as_uk_postcode => 'postcode' );

DESCRIPTION

This CGI::Untaint input handler verifies that it is dealing with a reasonable UK postcode, as defined by the Royal Mail. It does not check that the postcode is valid.

SEE ALSO

CGI::Untaint

AUTHOR

Tony Bowden, <kasei@tmtm.com>. Regular expression from Craig Berry

COPYRIGHT

Copyright (C) 2001 Tony Bowden. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.