in reply to Re^3: Bizarre Perl behavior?
in thread Bizarre Perl behavior?
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Bizarre Perl behavior?
by LanX (Saint) on Jan 30, 2022 at 22:52 UTC |