Update: it's mentioned in perlfaq4, option a).
In reply to Re^2: Finding unique elements in an array by Joost in thread Finding unique elements in an array by Eyck