PERL has a built-in function called join() that will concatenate a list with a given string. The official perldoc states:
join EXPR,LIST
Joins the separate strings of LIST into a single string with fields separated by the value of EXPR, and returns that new string. Example:
$rec = join(‘:’, $login,$passwd,$uid,$gid,$gcos,$home,$shell);
From the code example, you can make CSV [...]
Entries from February 2009
PERL How To Print A List Without A Loop
February 6th, 2009 · No Comments
Tags: How Tos · Programming · Software · perl