in reply to Problem with split and file processing. Need Help!!!

One potential problem is that you are looping on @data, then inside the loop, you are splitting @data.

Try relpacing:

@list=split(/ /,@data);

with:

@list = split /\s+/;