Hi Monks
I know the following code is Remove the duplicate elements from the array.
my @result = grep { !$seen{$_}++ } @a;
Can anyone explain this code and how its working.
Thanks
Rose
In reply to Explain the code by rose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |