On 21 February 2014 10:50, Nicholas Clark <n...@ccl4.org> wrote:
> Of those, "GIR 0AA" breaks the pattern for postcodes, doesn't it?
> No number in the out code.

Yup - so it has to be special cased - for example in
http://cpansearch.perl.org/src/LLAP/Geo-Postcode-0.17/lib/Geo/Postcode.pm
you get:

=head1 special_cases ()

Returns a list of known valid but non-conformist postcodes. The only
official one is 'G1R 0AA', the old girobank address, but you can
override this method to extend the list.

=cut

sub special_cases {
    return ('G1R 0AA');
}

Reply via email to