As you are new to Perl I want to comment at least on one line in your code:
@names12[$i]=@myNames[$i]+','; [download]
In reply to Re^5: Modifying text file by hdb in thread Modifying text file by torres09