Thanks POJ, that is a so much nicer and cleaned of version of what I had. I guess it's a good lesson that I need to take more type and clean my stuff up. Quick question regarding output. My hope was that the script would step through and take the first city name from file1 + the 1st keyword name from line 1 + the first proxy from line 1 and use that for the first query and then do the same with the second, third, forth line and so on. It looks like it's using the 1st keyword with the 1st city and then going through all of the proxies.

Keyword: [Myeloid+leukemia+lab] Current proxy:1.0.251.108:8080 getting https://www.bing.com/search?q=San+Jose+CA+Myeloid+leukemia+lab +&go=Submit&qs=n&form=QBLH&pq=San+Jose+CA+Myeloid+leukemia+lab&sc=0-25 +&sp=-1&sk=&cvid=ACB1AECE74E94CA8A48805667D1178F7 Creating Bing/San+Jose+CA_Myeloid+leukemia+lab_0.html Wide character in print at slurpiegui17.pl line 214. Current proxy:1.1.190.162:8080 getting https://www.bing.com/search?q=San+Jose+CA+Myeloid+leukemia+lab +&go=Submit&qs=n&form=QBLH&pq=San+Jose+CA+Myeloid+leukemia+lab&sc=0-25 +&sp=-1&sk=&cvid=ACB1AECE74E94CA8A48805667D1178F7 Creating Bing/San+Jose+CA_Myeloid+leukemia+lab_1.html Wide character in print at slurpiegui17.pl line 214. Current proxy:1.161.42.95:8088 getting https://www.bing.com/search?q=San+Jose+CA+Myeloid+leukemia+lab +&go=Submit&qs=n&form=QBLH&pq=San+Jose+CA+Myeloid+leukemia+lab&sc=0-25 +&sp=-1&sk=&cvid=ACB1AECE74E94CA8A48805667D1178F7 Creating Bing/San+Jose+CA_Myeloid+leukemia+lab_2.html Wide character in print at slurpiegui17.pl line 214.

I'll take a look at it right now as well and see if I can figure out how to change it for the desired output. Should be much easier with such clean code. Who knows I might even be abel to figure it out. If I succeed I'll comment on this post. Thanks


In reply to Re^8: Can't call method "proxy" on an undefined value at by Anonymous Monk
in thread Can't call method "proxy" on an undefined value at by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.