Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: removing duplicates from a string list

by PeterPeiGuo (Hermit)
on Nov 27, 2010 at 21:42 UTC ( [id://874028] : note . print w/replies, xml ) Need Help??


in reply to Re^2: removing duplicates from a string list
in thread removing duplicates from a string list

Always use strict and warnings, so you would have to declare your variable with my.

With a hash, the key is unique, but not neccessarily the values.

Peter (Guo) Pei

  • Comment on Re^3: removing duplicates from a string list