in reply to Comma separated list into a hash
where KEYLIST can be any expression returning a list, e.g. split ...# yes, the %hash gets a @ in front to show that we are going to use mu +ltiple keys; perl knows it's really %hash being used instead of @hash + because of the {} @hash{KEYLIST} = (); print "unique keys: ", scalar keys %hash;
|
|---|