(In this post, when I say "file" I mean the .inf file, not the perl file)

Larry, thanks a lot for posting.
Sorry I'm late with the reply, we had some issues with my workspace, so I couldn't work on this for a few days.

There are many URLs in the file, in the example code I only take the first line because I was just doing a test. Sorry that I did not specify.

Actually, the file is constituted of 2 URLs per process. So I divide the lines in 2 different arrays. One with the even lines and one with the odd ones. Let's suppose that the file I use is like this:

www.google.com/folder/ www.google.com/folder/onething.htm www.hotmail.com/folder/ www.hotmail.com/folder/anotherthing.htm


So, for each process I have to use the URLs in pairs.
I use a for to do it. However, that while( <INFO> ) way you told is great!! :)

The only way I know how to do what i want is with a for and a counter to separate the odds and evens.

Any ideas on alternatives that can be more efficient?? It can involve the code or the way the file is arranged.
I feel really narrow-minded right now since I'm a newbie, so any input is greatly appreciated. I hope my post is clear enough. Thanks!! :)

In reply to Re^2: How to eliminate "/n" from text by Deib
in thread How to eliminate "/n" from text by Deib

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.