# Programmers - What method do you use to display comma seperated lists correctly?

**URL:** https://boards.straightdope.com/t/programmers-what-method-do-you-use-to-display-comma-seperated-lists-correctly/580603
**Category:** The Game Room
**Created:** [May 3, 2011, 7:06pm UTC](https://boards.straightdope.com/t/programmers-what-method-do-you-use-to-display-comma-seperated-lists-correctly/580603 "2011-05-03T19:06:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Terminus\_Est](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/terminus_est/32/3087_2.png) [@Terminus\_Est](https://boards.straightdope.com/u/Terminus_Est)
#### Post date: [May 3, 2011, 7:09pm UTC](https://boards.straightdope.com/t/programmers-what-method-do-you-use-to-display-comma-seperated-lists-correctly/580603/2 "2011-05-03T19:09:50Z")

</div>

I’d just use the built-in join function in Perl:

$str = join “,”, @list;

---

_[View the full topic](https://boards.straightdope.com/t/programmers-what-method-do-you-use-to-display-comma-seperated-lists-correctly/580603)._
