February 2012
Intermediate to advanced
1184 pages
37h 17m
English
joinEXPR,LIST
This function joins the separate strings of
LIST into a single string with fields
separated by the value of EXPR, and returns
the string. For example:
$rec = join ":", $login,$passwd,$uid,$gid,$gcos,$home,$shell;
To do the opposite, see split.
To join things together into fixed-position fields, see pack. The most efficient way to concatenate
many strings together is to join them
with a null string:
$string = join "", @array;
Unlike split, join doesn’t take a pattern as its first
argument and will produce a warning if you try.
Read now
Unlock full access