You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
lists '9 inner parts to be found for NW1' type stats. I have a request that it should say 'NW1 needs inner parts for NW1 1, NW1 2, NW1 9 but they may not exist'. Across all postcodes. A bit of perl or something which parses
Author: edward[at]debian.org [Added to the original trac issue at 3.22pm, Friday, 30th March 2007]
curl http://www.freethepostcode.org/currentlist|perl -ne'/ ([A-Z0-9]+) (\d)[A-Z0-9]+/and$p{$1}{$2}=1}for$o(sort keys%p){@i=grep!$p{$o}{$_},1..9;@i and print"$o needs inner parts for ",join(", ",map"$o $_",@i)," but they may not exist\n"'
Author: edward[at]debian.org [Added to the original trac issue at 3.33pm, Friday, 30th March 2007]
or slightly less cryptically:
use strict;
use warnings;
my %postcode;
/ ([A-Z0-9]+) (\d)[A-Z0-9]+/ and $postcode{$1}{$2} = 1 while <>;
foreach my $outer (sort keys %postcode) {
my inner = grep !$postcode{$outer}{$_}, 1..9 or next;
print "$outer needs inner parts for ",
join(", ", map "$outer $_", inner),
" but they may not exist\n"
}
Reporter: steve[at]fractalus.com
[Submitted to the original trac issue database at 8.02pm, Wednesday, 28th March 2007]
the FTP stats page
http://www.freethepostcode.org/stats.html
lists '9 inner parts to be found for NW1' type stats. I have a request that it should say 'NW1 needs inner parts for NW1 1, NW1 2, NW1 9 but they may not exist'. Across all postcodes. A bit of perl or something which parses
http://www.freethepostcode.org/currentlist
is fine
The text was updated successfully, but these errors were encountered: