use Business::PostCode;
# get adresses
for (@addresses) {
if (postcode_ok($_->country, $_->postcode)) {
# ok, go on
} else {
# not ok, reject
}
}
and that's it!
Business::PostCode would integrate national modules like Business::BR::PostCode, Business::PT::PostCode, etc. to provide a worldly great benefit. That was a suggestion raised by _brian_d_foy after cog triggered a discussion on modules@perl.org about modules for validation. Was something like this attempted before? It seems to me Business::PostCode would be trivial provided Business::<Country>::PostCode modules with a common protocol.
What about other ideas for border-crossing Perl modules? Passport checking?
Call me cary...but... (Score:1)
Re: Call me cary...but... (Score:1)
Re: Call me cary...but... (Score:1)