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
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
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
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: