Just add an empty string at the end of the list of things to join:
my $result = join("\n", @lines, "");
In reply to Re: Join and append to last element?
by jand
in thread Join and append to last element?
by toma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |