Skip to main content


join — join stringlist elements into a single string


join { delimiter } { stringlist }


This function uses its first argument as a delimiter to join all the elements in the stringlist and returns the result as a string.

For example, to join MX records with a ",", we could:

$mxs = ec_dns_lookup "" "mx";
$res = join "," $mxs;

ec_log "Message Systems MX records ${res}";
Was this page helpful?