$flat = join(':', @a);The first parameter to join is what you want between the array elements.
Programming Tips - perl: flatten an array
Date: 2014nov11
Language: perl
Q. perl: flatten an array
A. Use join() like this: