in reply to Re^3: 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
It seems like the below code is printing the files with .rtf or .ftp files,I want to print files that has both .rtf and .ftp extension.Can someone advise?
use warnings; use strict; use File::Find::Rule; use Data::Dumper; my @files = File::Find::Rule->file() ->name( '*.rtf', '*.ftp' ) ->in( './' ); print Dumper(\@files);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Printing all the files that have both ".rtf" and ".ftp" by searching recursively in a given directory
by toolic (Bishop) on Apr 12, 2011 at 19:10 UTC | |
by Anonymous Monk on Apr 12, 2011 at 19:16 UTC | |
by Anonymous Monk on Apr 12, 2011 at 19:27 UTC |