chomp @lines;
If you want to delete the newline only from the last line, use
chomp $lines[-1];
In reply to Re: removing \n with for each
by choroba
in thread removing \n with for each
by MynameisAchint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |