in reply to Eliminating last comma
No one's mentioned it yet (that I noticed), but this could be an XY problem with the actual solution being use join( ",", @names ) instead of whatever method you're using now that's leaving a trailing comma (like appending "$x," inside a for loop, for example).
|
|---|