Kandankarunai has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Array element match
by Corion (Patriarch) on May 31, 2011 at 10:28 UTC

    See Sub array in Array of array and Eliminate Array of array duplication, and the replies and solutions you got there.

    This is not a code writing service. You need to show some effort and also put effort into your problem statement. You should explain what parts of your "example" are the example, and why elements should be excluded from the result.

Re: Array element match
by moritz (Cardinal) on May 31, 2011 at 10:18 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Array element match
by happy.barney (Friar) on May 31, 2011 at 10:57 UTC
    your spec if very vague ...
    my @array = ('1,2,3','1,2,3,4,5','11,12,13','11,12,13,14,15,16'); @array = do { my $last = ''; reverse grep { $last = $_ unless 0 == index $last, $_; $last eq $_ } sort { $b cmp $a } @array; };