Hi guys
I was wondering if you could help me.
I have the following row of data in one file:
405^100^200^A^B C D E
I have the following fragment of code that reads the data row:
while (FILE_OPENED) {
$number_of_elements= 0;
chop;
($record, $customer,
405^100^200^A^B C D E
while (FILE_OPENED) {
$number_of_elements= 0;
chop;
($record, $customer, $location, $plan, @items) = split(/\^/, $_);
$number_of_elements= $#items + 1;
print number_of_elements: $number_of_elements\n;
}
At the
, $customer, $location, $plan, $items) = split(/\^/,$_);
@items = split /\s/,$items;
-Original Message-
From: Sudarsan Raghavan
To: Ho, Tony
Cc: '[EMAIL PROTECTED]'
Sent: 4/23/02 2:30 AM
Subject: Re: Assigning values from files into an aray
405^100^200^A^B C D E
while (FILE_OPENED
: Tuesday, April 23, 2002 5:07 AM
To: '[EMAIL PROTECTED]'
Subject: Assigning values from files into an aray
Hi guys
I was wondering if you could help me.
I have the following row of data in one file:
405^100^200^A^B C D E
I have the following fragment of code that reads the data row:
while