good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How can I get a single record from Google Contacts based on a phone number?by kennethk (Abbot) |
on Mar 27, 2015 at 00:37 UTC ( [id://1121473]=note: print w/replies, xml ) | Need Help?? |
What have you tried? What worked? What didn't? What is your experience level with Perl? See How do I post a question effectively?.
Interaction with Google contacts can be accomodated with WWW::Google::Contacts (or this if CPAN search is down). Checking the number is likely accomplished with mangling the input into a regular expression; perhaps like: or, following your suggested spec If you are unfamiliar with regular expressions, see perlretut. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|