Seems like my earlier query was not clear,explain better here.
For example ,I have files foo.rtf and foo.ftp in a given directory.I want to print such files(print either of them).Basically any two different files with same name but different extension namely .rtf and .ftp needs to be printed.I tried the following but its not printing anything?Can anyone advise?
use warnings; use strict; use File::Find::Rule; use Data::Dumper; my @files = File::Find::Rule->file() ->name( qr/\.(rtf&ftp)$/ ) ->in( './' ); print Dumper(\@files);
In reply to Printing files that has two different extensions in a given directory
by Anonymous Monk
in thread Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |