How? If the array (@a) has duplicate values, hash will eliminate that.
In reply to Re^3: Explain the code by gopalr in thread Explain the code by rose