RE: Reading lines in variable

2002-10-01 Thread Kipp, James
are you saying the variable looks like this? $Record = " " 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 Mes

RE: Reading lines in variable

2002-10-01 Thread Timothy Johnson
Assuming that each "line" of your variable is separated by a \n, you can use the split() function. my @array = split /\n/,$variable; -Original Message- From: Faymon, Kurt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 5:51 AM To: [EMAIL PROTECTED] Subject: Reading lines in v

Re: Reading lines in variable

2002-10-01 Thread Sudarshan Raghavan
On Tue, 1 Oct 2002, Faymon, Kurt wrote: > > Simple for some (most), perplexing me: > > have a variable, say $Record which contains many lines (actually codes), > like: > > > > > > So on > > How can I roll through the value of the variable, capturing each line and > pushing it onto an

RE: Reading lines in variable

2002-10-01 Thread Faymon, Kurt
Ahsplit. Forgot about that (Perl is new frontier); Split is now my friend; thanks all. > -Original Message- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 01, 2002 9:14 AM > To: 'Faymon, Kurt'; [EMAIL PROTECTED] > Subject: RE: