Browse - Programming Tips - How do I flatten an array?

Date: 2014nov11
Language: perl

Q.  How do I flatten an array?

A.  Use join() like this:

$flat = join(':', @a);
The first parameter to join is what you want between the array elements.