On Tue, May 2, 2006 12:55, Randal L. Schwartz wrote: >>>>>> "Scott" == "Scott Taylor" <[EMAIL PROTECTED]> writes: > > Scott> my simple input file will look like this: > > Scott> <HTML> > Scott> <HEAD> > Scott> <TITLE>Bin Server</TITLE> > Scott> </HEAD> > Scott> <BODY> > Scott> <p>Data that I need</p> > Scott> <p>Data that I need</p> > Scott> </BODY> > Scott> </HTML> > > Scott> I want the output to just be lines of "Data that I need" stored in a > Scott> string, that I can work on each line one at a time, or in an array or > Scott> something like that would be great. > > Your specification is incomplete.
It is simple, not incomplete. > What if it says: > > <p>Data that I <b>need</b></p> > > Do you want <b> in your response? Or stripped? Or that part of it not included? I don't care. > And why is <p> interesting to you, but not <title>? those are both "text". > You'll need to explain it by more than just one example. What > if it's in a table? What if it's the caption for an image? Like I said, it's a "simple input file". The file comes from a robot, it will always look like that, and at this time, I am only interested in the lines between the <p> not saying I might not be interested in other stuff later on, or doing the same thing with another HTML some day down the road. Either way, an answer to the current question will most likely give me what I may need in the future. Basically, right now I just need the HTML to Text output, like I explained. Thanks for your help. -- Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>