* William McKee via RT <bug-Net-WhitePages at rt.cpan.org> [2008/07/03 23:56]:
Show quoted text> Thanks, very useful library. A nice helper method would be a method
> that returns true or false to indicate if data was found.
I hope it's useful for you.
I'm not sure how useful that method would be, since the module is
currently set up to be stateless, i.e., if you request info on the
same number 4 times, it makes 4 queries. Maybe if reverse_phone,
find_person, and reverse_address returned some kind of response
object, you could query that, but right now it's not complicated
enough to do that. The data structure that comes back from the lookup
methods is exactly as defined in the developer docs (see
http://developer.whitepages.com/docs), so in the case of empty result,
the {'result'}->{'code'} element would contain "No Data Found", and
the {'meta'}->{'recordrange'}->{'totalavailable'} element would be 0.
Hm, now that I'm reading what I just wrote, I think there might be a
call for a Response object, possibly with an internal cache. As soon
as I find some time, I'll code this up and release a new version.
(darren)
--
Which of us is not forever a stranger and alone?
-- Thomas Wolfe