SyntaxFix
Write A Post
Hire A Developer
Questions
Using concept of unique hash keys :
my @array = ("a","b","c","b","a","d","c","a","d"); my %hash = map { $_ => 1 } @array; my @unique = keys %hash; print "@unique","\n";
Output: a c b d