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).
In reply to Re: Eliminating last comma
by Fletch
in thread Eliminating last comma
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |