in reply to Re^4: Scalar assignment with loop iterator considered bad?
in thread Scalar assignment with loop iterator considered bad?
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;
|
|---|