Re: Warning: Use of uninitialized value

2010-02-01 Thread Bob Williams
"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

Re: Warning: Use of uninitialized value

2010-01-30 Thread Bob Williams
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

Re: AW: Warning: Use of uninitialized value

2010-01-30 Thread Bob Williams
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--- >>>

Re: Warning: Use of uninitialized value

2010-01-28 Thread Bob Williams
"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

Warning: Use of uninitialized value

2010-01-28 Thread Bob Williams
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

Apples, Carrots, and Pecans

2003-01-21 Thread Bob Williams
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

Comparing Apples and Oranges

2003-01-09 Thread 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

Compariing Apples and Oranges?

2003-01-09 Thread 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