Name

join

Synopsis

join char, list
                  

Joins the separate strings of list into a single string with fields separated by the value of char and returns the string. For example:

$_ = join ':', $login,$passwd,$uid,$gid,$gcos,$home,$shell;

To do the opposite, see split . To join things together into fixed-position fields, see pack .

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.