Hi, Thanks for your patch - you brought up a good point. We are actually fixing the C library so that it returns NULL instead of '--' - so the Perl XS should automatically return undef now instead of '--'.
-TJ On Fri, 25 Oct 2002, Michael Schout wrote: > One thing I'd add if you do decide to use the Geo::IP module, it does > not behave as documented if it does not find a match. The docs say it > returns "undef", but in fact it returns the string "--". The attached > patch fixes that problem. I've sent the patch to the GeoIP folks, and > got no reply. I'll try sending it to [EMAIL PROTECTED] and see if > someone gets it that way :). > > Mike