Assigning values from files into an aray

2002-04-23 Thread Ho, Tony
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,

Re: Assigning values from files into an aray

2002-04-23 Thread Sudarsan Raghavan
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

RE: Assigning values from files into an aray

2002-04-23 Thread Timothy Johnson
, $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

RE: Assigning values from files into an aray

2002-04-23 Thread Hooten, Michael
: 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