in reply to How to find last occurance in an array

You could use a list slice.
my $last = ( grep { ... } LIST )[-1];

Replies are listed 'Best First'.
Re^2: How to find last occurance in an array
by Anonymous Monk on Aug 28, 2010 at 04:08 UTC
    Thanks for your swift reply and I got the solution.