sounds like you are printing control code characters which are messing with the terminal. Like a CR without LF might overwrite the same line over and over again.
You guessed it correctly! There was \r\n at the end of every word in the array. I was using chomp and I should have been using something like $_ =~ s/\r[\n]*//; to remove it.
Thanks for the help!
In reply to Re^4: Bizarre Perl behavior?
by Polymathic
in thread Bizarre Perl behavior?
by Polymathic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |