By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,695 Members | 1,956 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,695 IT Pros & Developers. It's quick & easy.

how to input and ouput using perl

P: 4
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
Share this Question
Share on Google+
4 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
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

P: 4
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

P: 4
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+
P: 176
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.