title: How to get the index of the maximum element in an array?
body: <p>I want to find the maximum value in an array and print his index.</p>
  <p>I wrote this for print the maximum value; it works but I don't know how print the index.</p>
  <pre><code>use feature &quot;say&quot;;
  use List::Util qw(max);
  @x=qw(10 -2 -48 -5 7 34 28);
  say &quot;valore massimo: &quot;.max @x;
  </code></pre>