"Uri Guttman" wrote:
>>>>>> "BW" == Bob Williams writes:
>
> BW> Hi Rob, Many thanks. That does what I want :) Now I need to study
> BW> your code to learn why.
>
> and you need to learn to bottom post. you wrote one line and quote
my @fields = split ' ', $_, 2;
>
>if (@fields < 2) {
> print "Invalid data format at line $.\n";
> next;
>}
>
>push @ukchecksum, $fields[0];
>push @uktrackname, $fields[1];
> }
>
> print $ukchecksum[0];
> print $uktrack
Steve Bertrand wrote:
> Thomas Bätzler wrote:
>> Bob Williams asked:
>>> I am trying to split the lines in a file into two halves (at the first
>>> space) each half going into an array. The code I have written is below.
>>
>>> ---Code---
>>>
"John W. Krahn" wrote:
> Bob Williams wrote:
>> Hi,
>
> Hello,
>
>> I am trying to split the lines in a file into two halves (at the first
>> space) each half going into an array. The code I have written is below.
>> The print command is ther
Hi,
I am trying to split the lines in a file into two halves (at the first
space) each half going into an array. The code I have written is below. The
print command is there to test that things worked correctly, but it only
gives an error for each instance of the print command...
Use of uninit
descriptions). Carrot has: vegetable orange long. Pecan
has: nut brown oval.
I would like a script that creates an array from the food directory -
apple:fruit:red:round . The next line would be carrot:vegetable:orange:long
. The third line would pecan:nut:brown:oval .
Thanks.
Bob Williams
will not add Orange to List 2
even tho it is in the Control List 1.
Perhaps the script would create list 3 with the results (Apple, Tangerine, and Grape)?
Thanks
Bob Williams
to List 2
even tho it is in the Control List 1.
Perhaps the script would create list 3 with the results (Apple, Tangerine, and Grape)?
Thanks
Bob Williams