are you saying the variable looks like this? $Record = " <p> <h> <link> <ref> "
if so, all you need to do is split , not sure what exactly is in your record, but basically is done with split @array = split / /, $Record; again, the split parameter depends on what how $Record is to be parsed. > -----Original Message----- > From: Faymon, Kurt [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 01, 2002 8:51 AM > To: [EMAIL PROTECTED] > Subject: Reading lines in variable > > > > Simple for some (most), perplexing me: > > have a variable, say $Record which contains many lines > (actually codes), > like: > > <p> > <h> > <link> > <ref> > So on.... > > How can I roll through the value of the variable, capturing > each line and > pushing it onto an array? > > Kind like reading entries in a cfg file (one on each line) > and putting them > in array? > > thanks > > kf > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]