Hello FunkyMonk!
Thanks for replying. Incidently my code wrds[13] is what had contained the information that I needed. The code was working with information from wrds[13].
Unfortunately I could not try Data::Dump but the coincidence of you suspecting something about wrds[13] and it containing my info. is strange.
I used a work around (of manually putting the string in my variable which is not what I had written the code for) and went ahead with my work. But I shall be thankful if order change is understood.
Regards.
What FunkyMonk was getting to is that printing a carriage return ("\r") causes the cursor to move to the first column on many terminals. We suspect the value of $wrds[13] contains that character.