$thes_name{$fields[1]} = thes_name{$fields[1]}++; #### $i = $i ++; #### thes_name {$fields [1]}++;