[ic] Re: (update) postcode - OrderProfile check type  Brett
Harrison bh@mail.yhti.net Mon, 18 Sep 2000 02:50:16 -0500  I
hope this is not too far off topic :)  but with the bug tracking
database not yet functional on akopia's site, I just thought I'd
share this here.  Here is what I found on my problem with the
postcode OrderProfile check type:  in
INSTALLARCHLIB/lib/Vend/Order.pm on line 1163 is the following
code to perform the postcode checktype.  sub _postcode {
_zip(@_) or _ca_postcode(@_)                 and return (1,
$_[1], '');         return (undef, $var, 'not a US or Canada
postal/zip code');  This was not returning an error no matter
what.  I'm not a hardcore perl hacker, but I believe this to be
true because the list value that is returned by _zip() and
_ca_postcode includes the error message which was being
evaluated as true in _postcode(), thus causing it to return true
all the time.  Here is my replacement for _postcode() which
seems to have solved this problem.  sub _postcode {