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( '.' );
In reply to Re: Printing files that has two different extensions in a given directory
by ikegami
in thread Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |