in reply to subtractionn in an array

Have a look at the section on array variables in perlintro and it will explain how to get the value of an array element, and lots of other things too ;)