Hi All, I have one array having values as follows
User [EMAIL PROTECTED] User [EMAIL PROTECTED] User [EMAIL PROTECTED] Now I formatted above array as per your suggession as follows in order to remove duplicate value "User" @test = grep { ++$hash{$_} < 2 } @test; but output is as follows which is not proper User [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] I need output in this fashion [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Please help Regards Irfan. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/