title: In Perl, how can I join elements of an array after enclosing each element in brackets?
body: <p>I was trying to join elements of a Perl array.</p>
  
  <pre><code>@array=('a','b','c','d','e');
  $string=join(']',@array);
  </code></pre>
  
  <p>will give me </p>
  
  <pre><code>$string="a]b]c]d]e";
  </code></pre>
  
  <p>Is there anyway I can quickly get </p>
  
  <pre><code>$string="[a][b][c][d][e]";
  </code></pre>
  
  <p>?</p>