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

print join( $/, grep( /\.rtf$/, @allfiles ));
as well as all the variations indicated by tachyon, just using the result of grep() in place of the original array.