473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
4 1359
numberwhun
3,509 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
176 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

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

Similar topics

1
by: Scott Shaw | last post by:
Hi all, I was wondering if you could help out with this problem that I am having. What I am trying to do is detect keyboard input in a while loop without halting/pausing the loop until the key is...
1
by: Vlajko Knezic | last post by:
Not so sure what is going on here but is something to do with the way UTF8 is handled in Perl and/or LibXML The sctript below: - accepts a value from a form text field; - ...
1
by: JeromeG | last post by:
Hi, I have a project that use to be developped on WIndows NT 4.0 sp6a and Borland c++ builder 5.0. Now this project has been compiled and linked on Windows XP and Borland c++ 6.0. The reason...
5
by: jwright | last post by:
I have decided to use a struct to collect my data. The input file is comma dilineated between almost all of the fields. Here is the code I have so far and a sample input and output file. ...
44
by: Kulgan | last post by:
Hi I am struggling to find definitive information on how IE 5.5, 6 and 7 handle character input (I am happy with the display of text). I have two main questions: 1. Does IE automaticall...
5
by: oaktown | last post by:
Running two input forms on the same page, one php and the other (the one I would like to create) to be written in perl. The idea is to accept an input from a perl script, then pass that input to two...
4
by: jane007 | last post by:
Hello everybody: I am having a problem. On Unix platform, there is a script that need user to input data from console, then when I call Unix perl script from Windows, these is an issue occurs,...
2
by: Madmartigan | last post by:
Hi Operating system is WinXP using SharpDevelop version 1.1.0 and build 2124. I'm new to C# and have a problem trying to get a user to enter 3 mathematical operators of choice, then 2 numbers...
4
by: George Oliver | last post by:
hi, I'm a novice programmer trying to better define a hobby project I'm thinking of. What I would like to do is take a program and embed it or put it within a Python-run GUI, using the GUI just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.