title: Perl: Difference between two array index values
body: <p>I have two arrays input:</p>
  
  <pre><code>@a = (1, 2, 3, 4, 5);
  @b = (2, 2, 3, 6, 8);
  </code></pre>
  
  <p>Output:</p>
  
  <p>print 1,4,5 difference in first array.<br>
  print 2,6,8 difference in second array.</p>
  
  <p>I tried this, but I don't no which module to use.</p>
  
  <pre><code>use Array::Utils qw(:all);
  
  @a = (1, 2, 3, 4, 5);
  @a = (2, 2, 3, 6, 8);
  
  # get items from array @a that are not in array @b
  my @minus = array_minus( @a, @b );
  print @minus;exit;
  </code></pre>
  
  <p>I want to print the difference between index values.</p>