in reply to Printing files that has two different extensions in a given directory
in thread Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory

So: if a file has the .rtf extension or if it has the .ftp extension, prints its name.

my @files = File::Find::Rule ->file() ->name( qr/\.(?:rtf|ftp)\z/ ) ->in( '.' );
  • Comment on Re: Printing files that has two different extensions in a given directory
  • Download Code