in reply to Re^5: Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory
in thread Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory

I have a file with name foo.rtf and foo.ftp ,I only want to print such files with both extensions

  • Comment on Re^6: Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory

Replies are listed 'Best First'.
Re^7: Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory
by Anonymous Monk on Apr 12, 2011 at 19:27 UTC

    I tried to use thefollowing but it is also not helping..

    my @files = File::Find::Rule->file() ->name( qr/\.(rtf&ftp)$/ ) ->in( './' );