What also can be the problem is the fact that the value want assinged the letter but the value 1 because it had a value stored in it this is where perl can get annoying so u need to to put it in quotes in a $scalar