in reply to Re: Removal of duplicated element in array.
in thread Removal of duplicated element in array.

Hi Rahul6990 ,
this line :my @match_to_array = (a,b,c,a,d,c,b,r); #Oops
should either be
my @match_to_array = ('a','b','c','a','d','c','b','r');
OR
my @match_to_array = qw(a b c a d c b r);

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me