Something in my code is inserting invisible newlines into my strings in a terminal, and I would like to have any suggestions as to how to fix my code to get rid of them, or where to find such info.
code causing newline (newline 'appears' directly after $index):
if($current!=1){ say "$simple rad[$index] $current"; }
The much more plausible answer is that the value in $index ends with a newline. What's the output of
use Data::Dumper; local $Data::Dumper::Useqq = 1; print(Dumper($index));
In reply to Re: 'Invisible' newlines/line wrapping
by ikegami
in thread 'Invisible' newlines/line wrapping
by luolimao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |