Join() your Array Elements
Monday April 3, 2006
The standard Perl library has a very useful function for converting an array of items into a simple string, connecting them with a glue string. For example, if you had a list of names contained in an array you could join them with a comma and create a nicely formatted, ready-to-print string. Find out more about Perl's join() function in this quick tutorial.
