title: How do I shrink an array in Perl?
body: <p>How do I make an array shorter in Perl?  I read some webpages indicating that I can assign:</p>
  
  <pre><code>$#ARRAY = 42;
  </code></pre>
  
  <p>I read that the use of $# is deprecated.  I need a solution that will work for an array of arrays, too.  This didn't work:</p>
  
  <pre><code>$#$ARRAY[$i] = 42;
  </code></pre>