Brain Goo

Carpe Crap ‘em

Brain Goo header image 4

Entries from February 2009

PERL How To Print A List Without A Loop

February 6th, 2009 · No Comments

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 [...]

[Read more →]

Tags: How Tos · Programming · Software · perl