use Uniq; my @test1 = ("0","0","A"); my @test2 = ("1","1","A"); @test1 = uniq sort @test1; @test2 = uniq sort @test2; print "$_" for @test1; print "\n"; print "$_" for @test2; print "\n";
returns:
00A 1A
Should it be 0A or not ?!
thanks
arrays perl unique
user476918
source share