Hello all,
first time posting, or emailing as it may be.
I=92m a newbie to Ruby and I am struggling with something that seems =
very very simple to me but no matter what I try it I can=92t get my =
desired out put. (therefore I guess it isn=92t easy=85.)

I want to iterate through my_array to see if the last element is =3D=3D =
=93-=93 if it is replace that element with =93X=94=20

Then I want to repeat this operation.
I want to iterate through my_array to see if the last element is =3D=3D =
to =93-=93 NO
move to the next to last element, is this element =3D=3D to =93-=93 YES =
replace with =93X"

I know how to make them ALL  change at once but that isn=92t my goal, it =
needs to be one at time. Example would be receiving user input so I =
would want to change the elements one at a time. Kind of like a match =
data.

starting array
my_array =3D [=933=94, =93-=93, =93-=93, =93-=93, =93-=93]

Hope this makes sense and thanks in advance for any help!

Troy