title: How do I remove duplicate values from an array in Perl?
body: <p>I have multiple values for each key in the hash. Here, I print the values of each key</p>
  
  <pre><code>print "$var:",join ',',@{$hash{$var}},"\n";
  </code></pre>
  
  <p>Output of the above print statement is:</p>
  
  <pre><code>ABC:1,2,3,1,4,2,
  DEF:9,3,4,5,3,5,
  </code></pre>
  
  <p>Now, I want to remove duplicates in the values. The desired output is,</p>
  
  <pre><code>ABC:1,2,3,4
  DEF:9,3,4,5
  </code></pre>
  
  <p>Can someone help me in this?</p>
  
  <p>Thanks</p>