I'm a newcomer/novice to perl, but am trying to modify a script to retrieve headlines from another page. The script works with one "minor" flaw....each headline wraps to two lines.
We have:
In the source code of the site I'm pulling headlines from, each headline is formatted as follows:
word on line one and the others on line two.So, of course, my results return in the same manner, with only the first word linked to the reference source. What do I need to do to join lines one and two of each headline? Each new headline is prefaced by a <LI> tag, and ends with an </A> tag.
Thanks!
Melanie
http://www.somemoorecats.com/
http://www.okhima.org/
We have:
Code:
@lau=split(/\n/,$doc);Code:
One word on line one and the others on line two.
Thanks!
Melanie
http://www.somemoorecats.com/
http://www.okhima.org/