[ic] multizip check fails with trailing space

Josh Lavin josh-ic at att.net
Fri Jul 23 20:03:41 UTC 2010

Is there any reason why Order.pm allows leading spaces, but not trailing 
spaces, in the US zip_routine for the multizip profile check?

It has been this way for many years, so it is hard to believe that it 
was not intentional...

If it's an oversight, then it's a simple fix:

-$zip_routine{US} = sub { $_[0] =~ /^\s*\d\d\d\d\d(?:-?\d\d\d\d)?$/ };
+$zip_routine{US} = sub { $_[0] =~ /^\s*\d\d\d\d\d(?:-?\d\d\d\d)?\s*$/ };

Josh Lavin
Perusion -- Expert Interchange Consulting    http://www.perusion.com/

More information about the interchange-users mailing list