in reply to Re: Re: list array
in thread list array

Yes, see grep.
print map "$_\n", grep /[.]rtf\z/i, @allfiles;

Makeshifts last the longest.