how to input and ouput using perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • junkchiu
    New Member
    • Jun 2008
    • 4

    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,
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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

    Comment

    • junkchiu
      New Member
      • Jun 2008
      • 4

      #3
      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.

      Comment

      • junkchiu
        New Member
        • Jun 2008
        • 4

        #4
        Just to clarify. this is a research project for "my own research"... Not a project for the class. Any help is greatly appreciated.

        Comment

        • Kelicula
          Recognized Expert New Member
          • Jul 2007
          • 176

          #5
          LWP is great, I believe the example script they offer could be easily tailored to your needs.

          See Here

          Comment

          Working...