467,146 Members | 1,010 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,146 developers. It's quick & easy.

how to input and ouput using perl

I have a very specific task, and I am hoping to use Perl to solve it. I have 1500+ company name, city, and state information but I need street address. Therefore, I want to input the information to www.yellowpage.com and search for the street address and zip code of the company. I understand there might more than one result in the ouput page so I just need to store the first one. For example, on the yellowpage.com if I type KPMG and Los Angeles, CA, it will yield two results. I just want to store the street address of the first one, which is
355 S Grand Ave Los Angeles, CA 90071.

Is there any perl script that can do the task?

Thanks,
Jun 26 '08 #1
  • viewed: 1113
Share:
4 Replies
numberwhun
Expert Mod 2GB
To begin, I am curious, is this a homework question? If so, we cannot provide you code for this as it is against this sites posting policy.

As for what you are wanting to do, I can say that I find the WWW::Mechanize module to be particularly useful when needing to interact with websites. You may want to check it out, unless someone else has any idea.

Regards,

Jeff
Jun 26 '08 #2
Thanks,
this is for a research project. If there are any codes that are very similar to the task I just describe, it will be very helpful. I just need any programing language which can easily implement it. It doesn't necessarily need to be Perl.
Jun 26 '08 #3
Just to clarify. this is a research project for "my own research"... Not a project for the class. Any help is greatly appreciated.
Jun 26 '08 #4
Kelicula
Expert 100+
LWP is great, I believe the example script they offer could be easily tailored to your needs.

See Here
Jun 26 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Scott Shaw | last post: by
1 post views Thread by Vlajko Knezic | last post: by
1 post views Thread by JeromeG | last post: by
5 posts views Thread by jwright@componentsys.com | last post: by
4 posts views Thread by George Oliver | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.