in reply to Getting rid of uninitialized value warning (was: can't spot the error)

Apparantly at some point $array[14] or $array[15] is empty. You get a slew of errors as this is repeated through the loop. Initialize each member of the array instead of setting it to empty - this will hitperformance but should clear your problem.

On another note, please indent your code within the while block. :-)

Cheers,
Erik