Gossamer Forum
Home : General : Perl Programming :

Help joining elements

Quote Reply
Help joining elements
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:
Code:
@lau=split(/\n/,$doc);
In the source code of the site I'm pulling headlines from, each headline is formatted as follows:
Code:
One
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/
Subject Author Views Date
Thread Help joining elements msmoore 2797 May 26, 2000, 4:12 PM
Thread Re: Help joining elements
Mark Badolato 2673 May 26, 2000, 5:14 PM
Thread Re: Help joining elements
msmoore 2677 May 26, 2000, 5:23 PM
Post Re: Help joining elements
msmoore 2666 May 26, 2000, 9:37 PM