Which is why I'd probably defer adding the trailing comma until I knew I was actually going to add something else:
$var .= join ', ', @stuff; $var .= ', ' . 'more stuff' if $moreStuffNeeded;
In reply to Re^5: Scalar assignment with loop iterator considered bad?
by BrowserUk
in thread Scalar assignment with loop iterator considered bad?
by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |