[ANNOUNCE] Damian Conway Speaking at London.pm: Monday, 10th March

Edmund von der Burg evdb at ecclestoad.co.uk
Fri Feb 21 14:04:14 GMT 2014

On 21 February 2014 11:00, Edmund von der Burg <evdb at ecclestoad.co.uk> wrote:
> On 21 February 2014 10:50, Nicholas Clark <nick at 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');
> }

Hmm - but that is G<number one>R not G<capital letter i>R. Perhaps a
patch is in order - a quick Google suggests that the capital i is what
it is meant to be...

More information about the london.pm mailing list