my @lastfive = ( grep { /criteria/ } ) [ -5 .. -1 ];