Now that you have provided a stealth update to your node to include more of the code the answer is obvious - you need to chomp $index and any other $variables you get populate using <STDIN>.
For future reference you should note that it is polite to indicate that you have made a significant update to your node contents. People get grumpy when their reply is made to look stupid because it doesn't match the contents of the node they are replying to.
In reply to Re: 'Invisible' newlines/line wrapping
by GrandFather
in thread 'Invisible' newlines/line wrapping
by luolimao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |