Use join, and stick the first and last delimiter to the ends manually.
Something like:
my $result = '#(#string#' . join('#;#string#', @array) . '#)#;
Or a bit prettier:
my $result = sprintf '#(#string#%s#)#',join('#;#string#', @array);
In reply to Re: Array / String
by moritz
in thread Array / String
by mightycare
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |